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

props celloexpressions.
fixes #32808.

git-svn-id: https://develop.svn.wordpress.org/trunk@32985 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-06-28 06:07:47 +00:00
parent 0916133d43
commit 893d02d469

View File

@ -563,6 +563,21 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
<?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; ?>
<?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>
<?php
foreach( $messages as $message ) :