From 2d76e0dfb28fabbd94da262cfe6de3f92a51d3cc Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Wed, 7 Dec 2016 22:18:40 +0000 Subject: [PATCH] Accessibility: Remove inappropriate content from the Widgets screen heading. See #26601. Built from https://develop.svn.wordpress.org/trunk@39541 git-svn-id: http://core.svn.wordpress.org/trunk@39481 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/widgets.php | 35 +++++++++++++++++++---------------- wp-includes/version.php | 2 +- 2 files changed, 20 insertions(+), 17 deletions(-) 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.