Skip to content

Commit

Permalink
yoduhhh
Browse files Browse the repository at this point in the history
  • Loading branch information
bschneidewind committed Feb 3, 2025
1 parent a76026a commit aeb8293
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function twentynineteen_add_ellipses_to_nav( $nav_menu, $args ) {
function twentynineteen_nav_menu_link_attributes( $atts, $item, $args ) {

// Checks if this is the primary menu.
if ( isset( $args->theme_location ) && $args->theme_location === 'menu-1' ) {
if ( isset( $args->theme_location ) && 'menu-1' === $args->theme_location ) {
// Add [aria-haspopup] and [aria-expanded] to menu items that have children.
$item_has_children = in_array( 'menu-item-has-children', $item->classes, true );
if ( $item_has_children ) {
Expand Down

0 comments on commit aeb8293

Please sign in to comment.