Customizer: Remove the 'appearance' reference from permission error messages added in [33857], [33889], and [33902].

Props Frozzare.
Fixes #36466.

git-svn-id: https://develop.svn.wordpress.org/trunk@37197 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2016-04-14 01:57:31 +00:00
parent dbf17abf5c
commit fc709f0024
3 changed files with 3 additions and 3 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' ),