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:
parent
b26accf35a
commit
bff91cfa5b
|
@ -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 ) :
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @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.
|
||||
|
|
Loading…
Reference in New Issue