Twenty Nineteen: Adjust markup in twentynineteen_add_ellipses_to_nav() for better readability.

See #47067.
Built from https://develop.svn.wordpress.org/trunk@45595


git-svn-id: http://core.svn.wordpress.org/trunk@45406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-07-04 09:15:58 +00:00
parent f84ab5e19f
commit d1815a5c91
2 changed files with 20 additions and 19 deletions

View File

@ -202,24 +202,25 @@ function twentynineteen_add_ellipses_to_nav( $nav_menu, $args ) {
if ( 'menu-1' === $args->theme_location ) : if ( 'menu-1' === $args->theme_location ) :
$nav_menu .= '<div class="main-menu-more">'; $nav_menu .= '
$nav_menu .= '<ul class="main-menu">'; <div class="main-menu-more">
$nav_menu .= '<li class="menu-item menu-item-has-children">'; <ul class="main-menu">
$nav_menu .= '<button class="submenu-expand main-menu-more-toggle is-empty" tabindex="-1" aria-label="More" aria-haspopup="true" aria-expanded="false">'; <li class="menu-item menu-item-has-children">
$nav_menu .= '<span class="screen-reader-text">' . esc_html__( 'More', 'twentynineteen' ) . '</span>'; <button class="submenu-expand main-menu-more-toggle is-empty" tabindex="-1" aria-label="More" aria-haspopup="true" aria-expanded="false">
$nav_menu .= twentynineteen_get_icon_svg( 'arrow_drop_down_ellipsis' ); <span class="screen-reader-text">' . esc_html__( 'More', 'twentynineteen' ) . '</span>' .
$nav_menu .= '</button>'; twentynineteen_get_icon_svg( 'arrow_drop_down_ellipsis' ) . '
$nav_menu .= '<ul class="sub-menu hidden-links">'; </button>
$nav_menu .= '<li id="menu-item--1" class="mobile-parent-nav-menu-item menu-item--1">'; <ul class="sub-menu hidden-links">
$nav_menu .= '<button class="menu-item-link-return">'; <li id="menu-item--1" class="mobile-parent-nav-menu-item menu-item--1">
$nav_menu .= twentynineteen_get_icon_svg( 'chevron_left' ); <button class="menu-item-link-return">' .
$nav_menu .= esc_html__( 'Back', 'twentynineteen' ); twentynineteen_get_icon_svg( 'chevron_left' ) .
$nav_menu .= '</button>'; esc_html__( 'Back', 'twentynineteen' ) . '
$nav_menu .= '</li>'; </button>
$nav_menu .= '</ul>'; </li>
$nav_menu .= '</li>'; </ul>
$nav_menu .= '</ul>'; </li>
$nav_menu .= '</div>'; </ul>
</div>';
endif; endif;

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.3-alpha-45594'; $wp_version = '5.3-alpha-45595';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.