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
This commit is contained in:
Sergey Biryukov 2016-04-14 01:58:28 +00:00
parent 1e82651504
commit 77e2737d89
4 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ require_once( dirname( __FILE__ ) . '/admin.php' );
if ( ! current_user_can( 'customize' ) ) {
wp_die(
'<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
'<p>' . __( 'You are not allowed to customize the appearance of this site.' ) . '</p>',
'<p>' . __( 'You are not allowed to customize this site.' ) . '</p>',
403
);
}

View File

@ -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();

View File

@ -443,7 +443,7 @@ function wp_default_scripts( &$scripts ) {
'cancel' => __( 'Cancel' ),
'close' => __( 'Close' ),
'cheatin' => __( 'Cheatin&#8217; 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' ),

View File

@ -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.