From 77e2737d892da54d5af998bf5a5c15265e1dfbc9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 14 Apr 2016 01:58:28 +0000 Subject: [PATCH] Customizer: Remove the 'appearance' reference from permission error messages added in [33857], [33889], and [33902]. Props Frozzare. Fixes #36466. Built from https://develop.svn.wordpress.org/trunk@37197 git-svn-id: http://core.svn.wordpress.org/trunk@37163 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/customize.php | 2 +- wp-includes/class-wp-customize-manager.php | 2 +- wp-includes/script-loader.php | 2 +- wp-includes/version.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/customize.php b/wp-admin/customize.php index 7f667d373d..f17bc2c10e 100644 --- a/wp-admin/customize.php +++ b/wp-admin/customize.php @@ -15,7 +15,7 @@ require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can( 'customize' ) ) { wp_die( '

' . __( 'Cheatin’ uh?' ) . '

' . - '

' . __( 'You are not allowed to customize the appearance of this site.' ) . '

', + '

' . __( 'You are not allowed to customize this site.' ) . '

', 403 ); } diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index 8057e57ae0..d414416624 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -387,7 +387,7 @@ final class WP_Customize_Manager { show_admin_bar( false ); if ( ! current_user_can( 'customize' ) ) { - $this->wp_die( -1, __( 'You are not allowed to customize the appearance of this site.' ) ); + $this->wp_die( -1, __( 'You are not allowed to customize this site.' ) ); } $this->original_stylesheet = get_stylesheet(); diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 66080a835b..98b8a17252 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -443,7 +443,7 @@ function wp_default_scripts( &$scripts ) { 'cancel' => __( 'Cancel' ), 'close' => __( 'Close' ), 'cheatin' => __( 'Cheatin’ uh?' ), - 'notAllowed' => __( 'You are not allowed to customize the appearance of this site.' ), + 'notAllowed' => __( 'You are not allowed to customize this site.' ), 'previewIframeTitle' => __( 'Site Preview' ), 'loginIframeTitle' => __( 'Session expired' ), 'collapseSidebar' => __( 'Collapse Sidebar' ), diff --git a/wp-includes/version.php b/wp-includes/version.php index b7dc740ed9..e3fab769c9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37196'; +$wp_version = '4.6-alpha-37197'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.