diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php index e1ae09132f..4a34b58c8b 100644 --- a/wp-admin/widgets.php +++ b/wp-admin/widgets.php @@ -344,24 +344,27 @@ $errors = array( require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
-

+

+ %2$s', - esc_url( add_query_arg( - array( - array( 'autofocus' => array( 'panel' => 'widgets' ) ), - 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) - ), - admin_url( 'customize.php' ) - ) ), - __( 'Manage with Live Preview' ) - ); - } +if ( current_user_can( 'customize' ) ) { + printf( + ' %2$s', + esc_url( add_query_arg( + array( + array( 'autofocus' => array( 'panel' => 'widgets' ) ), + 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) + ), + admin_url( 'customize.php' ) + ) ), + __( 'Manage with Live Preview' ) + ); +} ?> - + +

diff --git a/wp-includes/version.php b/wp-includes/version.php index b344d9f04c..01fcd4b823 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-39540'; +$wp_version = '4.8-alpha-39541'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.