WordPress.org

Make WordPress Core

Ticket #47067: 47067.1.diff

File 47067.1.diff, 1.4 KB (added by ianbelanger, 5 weeks ago)

Updated patch to remove unnecessary id and class

  • src/wp-content/themes/twentynineteen/inc/template-functions.php

     
    205205                $nav_menu .= '<div class="main-menu-more">';
    206206                $nav_menu .= '<ul class="main-menu">';
    207207                $nav_menu .= '<li class="menu-item menu-item-has-children">';
    208                 $nav_menu .= '<button class="submenu-expand main-menu-more-toggle is-empty" tabindex="-1" aria-label="More" aria-haspopup="true" aria-expanded="false">';
    209                 $nav_menu .= '<span class="screen-reader-text">' . esc_html__( 'More', 'twentynineteen' ) . '</span>';
     208                $nav_menu .= '<button class="submenu-expand main-menu-more-toggle is-empty" tabindex="-1" aria-label="' . esc_attr__( 'More', 'twentynineteen' ) . '" aria-haspopup="true" aria-expanded="false">';
    210209                $nav_menu .= twentynineteen_get_icon_svg( 'arrow_drop_down_ellipsis' );
    211210                $nav_menu .= '</button>';
    212211                $nav_menu .= '<ul class="sub-menu hidden-links">';
    213                 $nav_menu .= '<li id="menu-item--1" class="mobile-parent-nav-menu-item menu-item--1">';
     212                $nav_menu .= '<li class="mobile-parent-nav-menu-item">';
    214213                $nav_menu .= '<button class="menu-item-link-return">';
    215214                $nav_menu .= twentynineteen_get_icon_svg( 'chevron_left' );
    216215                $nav_menu .= esc_html__( 'Back', 'twentynineteen' );