Menus: Add a Manage in Customizer link, like we did for Widgets screen in [30459].

props celloexpressions.
fixes #32808.
Built from https://develop.svn.wordpress.org/trunk@32985


git-svn-id: http://core.svn.wordpress.org/trunk@32956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-06-28 06:08:24 +00:00
parent b26accf35a
commit bff91cfa5b
2 changed files with 16 additions and 1 deletions

View File

@ -563,6 +563,21 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
<?php if ( $num_locations && $menu_count ) : ?> <?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> <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; ?> <?php endif; ?>
<?php
if ( current_user_can( 'customize' ) ) {
printf(
' <a class="add-new-h2 hide-if-no-customize" href="%1$s">%2$s</a>',
esc_url( add_query_arg(
array(
array( 'autofocus' => array( 'panel' => 'menus' ) ),
'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) )
),
admin_url( 'customize.php' )
) ),
__( 'Manage in Customizer' )
);
}
?>
</h1> </h1>
<?php <?php
foreach( $messages as $message ) : foreach( $messages as $message ) :

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.3-alpha-32984'; $wp_version = '4.3-alpha-32985';
/** /**
* 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.