WordPress.org

Make WordPress Core

Ticket #47067: 47067.diff

File 47067.diff, 1.2 KB (added by chetan200891, 3 months ago)

Created initial patch.

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

    diff --git a/src/wp-content/themes/twentynineteen/inc/template-functions.php b/src/wp-content/themes/twentynineteen/inc/template-functions.php
    index 2dbd0c5eba..4fadd1c160 100644
    a b function twentynineteen_add_ellipses_to_nav( $nav_menu, $args ) { 
    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">';