Nav Menus: Add a Menus title with Manage in Customizer button to nav-menus.php
This aligns the `<h1>` on `wp-admin/nav-menus.php` with that of other admin screens and aligns the "Manage in Customizer" button with that on `wp-admin/widgets.php`. Fixes #32808. Built from https://develop.svn.wordpress.org/trunk@33355 git-svn-id: http://core.svn.wordpress.org/trunk@33327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e5340ea63f
commit
a0e830d9af
|
@ -558,26 +558,29 @@ get_current_screen()->set_help_sidebar(
|
|||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
?>
|
||||
<div class="wrap">
|
||||
<h1 class="nav-tab-wrapper">
|
||||
<h1><?php echo esc_html( __( 'Menus' ) ); ?>
|
||||
<?php
|
||||
if ( current_user_can( 'customize' ) ) :
|
||||
$focus = $locations_screen ? array( 'section' => 'menu_locations' ) : array( 'panel' => 'nav_menus' );
|
||||
printf(
|
||||
' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>',
|
||||
esc_url( add_query_arg( array(
|
||||
array( 'autofocus' => $focus ),
|
||||
'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ),
|
||||
), admin_url( 'customize.php' ) ) ),
|
||||
__( 'Manage in Customizer' )
|
||||
);
|
||||
endif;
|
||||
?>
|
||||
</h1>
|
||||
<h2 class="nav-tab-wrapper">
|
||||
<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 ) : ?>
|
||||
<a href="<?php echo esc_url( add_query_arg( array( 'action' => 'locations' ), admin_url( 'nav-menus.php' ) ) ); ?>" class="nav-tab<?php if ( $locations_screen ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Manage Locations' ); ?></a>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
if ( current_user_can( 'customize' ) ) :
|
||||
$focus = $locations_screen ? array( 'section' => 'menu_locations' ) : array( 'panel' => 'nav_menus' );
|
||||
printf(
|
||||
' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>',
|
||||
esc_url( add_query_arg( array(
|
||||
array( 'autofocus' => $focus ),
|
||||
'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ),
|
||||
), admin_url( 'customize.php' ) ) ),
|
||||
__( 'Manage in Customizer' )
|
||||
);
|
||||
endif;
|
||||
?>
|
||||
</h1>
|
||||
</h2>
|
||||
<?php
|
||||
foreach( $messages as $message ) :
|
||||
echo $message . "\n";
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-beta3-33354';
|
||||
$wp_version = '4.3-beta3-33355';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue