mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
f84ab5e19f
commit
d1815a5c91
@ -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;
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user