Accessibility: Remove inappropriate content from the Menus screen heading.
See #26601. Built from https://develop.svn.wordpress.org/trunk@39543 git-svn-id: http://core.svn.wordpress.org/trunk@39483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
40e303237b
commit
76a5b4f3c2
|
@ -576,7 +576,7 @@ get_current_screen()->set_help_sidebar(
|
||||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h1><?php echo esc_html( __( 'Menus' ) ); ?>
|
<h1 class="wp-heading-inline"><?php echo esc_html( __( 'Menus' ) ); ?></h1>
|
||||||
<?php
|
<?php
|
||||||
if ( current_user_can( 'customize' ) ) :
|
if ( current_user_can( 'customize' ) ) :
|
||||||
$focus = $locations_screen ? array( 'section' => 'menu_locations' ) : array( 'panel' => 'nav_menus' );
|
$focus = $locations_screen ? array( 'section' => 'menu_locations' ) : array( 'panel' => 'nav_menus' );
|
||||||
|
@ -590,7 +590,9 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
);
|
);
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
</h1>
|
|
||||||
|
<hr class="wp-header-end">
|
||||||
|
|
||||||
<h2 class="nav-tab-wrapper wp-clearfix">
|
<h2 class="nav-tab-wrapper wp-clearfix">
|
||||||
<a href="<?php echo admin_url( 'nav-menus.php' ); ?>" class="nav-tab<?php if ( ! isset( $_GET['action'] ) || isset( $_GET['action'] ) && 'locations' != $_GET['action'] ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Edit Menus' ); ?></a>
|
<a href="<?php echo admin_url( 'nav-menus.php' ); ?>" class="nav-tab<?php if ( ! isset( $_GET['action'] ) || isset( $_GET['action'] ) && 'locations' != $_GET['action'] ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Edit Menus' ); ?></a>
|
||||||
<?php if ( $num_locations && $menu_count ) : ?>
|
<?php if ( $num_locations && $menu_count ) : ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.8-alpha-39542';
|
$wp_version = '4.8-alpha-39543';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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