Widgets: Add return param for widgets admin page to the "Manage in Customizer" link.
props tywayne. fixes #30888. git-svn-id: https://develop.svn.wordpress.org/trunk@31420 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0f5458ec6d
commit
1ddd9cad9b
@ -316,7 +316,13 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
||||
if ( current_user_can( 'customize' ) ) {
|
||||
printf(
|
||||
' <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' )
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user