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:
parent
1e82651504
commit
77e2737d89
|
@ -15,7 +15,7 @@ require_once( dirname( __FILE__ ) . '/admin.php' );
|
|||
if ( ! current_user_can( 'customize' ) ) {
|
||||
wp_die(
|
||||
'<h1>' . __( 'Cheatin’ 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
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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' ),
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue