diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php index ae471a0a63..604a369dc2 100644 --- a/wp-admin/widgets.php +++ b/wp-admin/widgets.php @@ -316,7 +316,13 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> if ( current_user_can( 'customize' ) ) { printf( ' %2$s', - 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' ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 9d1f7ee43b..eb55f2a9db 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.