mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
Widgets: Add return param for widgets admin page to the "Manage in Customizer" link.
props tywayne. fixes #30888. Built from https://develop.svn.wordpress.org/trunk@31420 git-svn-id: http://core.svn.wordpress.org/trunk@31401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6adb5c0618
commit
46f98473d1
@ -316,7 +316,13 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
|||||||
if ( current_user_can( 'customize' ) ) {
|
if ( current_user_can( 'customize' ) ) {
|
||||||
printf(
|
printf(
|
||||||
' <a class="add-new-h2 hide-if-no-customize" href="%1$s">%2$s</a>',
|
' <a class="add-new-h2 hide-if-no-customize" href="%1$s">%2$s</a>',
|
||||||
admin_url( 'customize.php?autofocus[panel]=widgets' ),
|
esc_url( add_query_arg(
|
||||||
|
array(
|
||||||
|
array( 'autofocus' => array( 'panel' => 'widgets' ) ),
|
||||||
|
'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) )
|
||||||
|
),
|
||||||
|
admin_url( 'customize.php' )
|
||||||
|
) ),
|
||||||
__( 'Manage in Customizer' )
|
__( 'Manage in Customizer' )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.2-alpha-31419';
|
$wp_version = '4.2-alpha-31420';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
Block a user