mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 06:29:30 +00:00
Provide more helpful feedback than just "Cheatin' uh?" for permission errors in wp-admin/js/customize-controls.js
.
fixes #33685. see #14530. Built from https://develop.svn.wordpress.org/trunk@33902 git-svn-id: http://core.svn.wordpress.org/trunk@33871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d612c11ab0
commit
f0ce1f06ea
@ -1208,6 +1208,16 @@ body.cheatin {
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.13);
|
||||
}
|
||||
|
||||
body.cheatin h1 {
|
||||
border-bottom: 1px solid #dadada;
|
||||
clear: both;
|
||||
color: #666;
|
||||
font: 24px "Open Sans", sans-serif;
|
||||
margin: 30px 0 0 0;
|
||||
padding: 0;
|
||||
padding-bottom: 7px;
|
||||
}
|
||||
|
||||
body.cheatin p {
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
|
2
wp-admin/css/customize-controls-rtl.min.css
vendored
2
wp-admin/css/customize-controls-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -1208,6 +1208,16 @@ body.cheatin {
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.13);
|
||||
}
|
||||
|
||||
body.cheatin h1 {
|
||||
border-bottom: 1px solid #dadada;
|
||||
clear: both;
|
||||
color: #666;
|
||||
font: 24px "Open Sans", sans-serif;
|
||||
margin: 30px 0 0 0;
|
||||
padding: 0;
|
||||
padding-bottom: 7px;
|
||||
}
|
||||
|
||||
body.cheatin p {
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
|
2
wp-admin/css/customize-controls.min.css
vendored
2
wp-admin/css/customize-controls.min.css
vendored
File diff suppressed because one or more lines are too long
@ -3028,7 +3028,10 @@
|
||||
},
|
||||
|
||||
cheatin: function() {
|
||||
$( document.body ).empty().addClass('cheatin').append( '<p>' + api.l10n.cheatin + '</p>' );
|
||||
$( document.body ).empty().addClass( 'cheatin' ).append(
|
||||
'<h1>' + api.l10n.cheatin + '</h1>' +
|
||||
'<p>' + api.l10n.notAllowed + '</p>'
|
||||
);
|
||||
},
|
||||
|
||||
refreshNonces: function() {
|
||||
|
2
wp-admin/js/customize-controls.min.js
vendored
2
wp-admin/js/customize-controls.min.js
vendored
File diff suppressed because one or more lines are too long
@ -428,6 +428,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.' ),
|
||||
'previewIframeTitle' => __( 'Site Preview' ),
|
||||
'loginIframeTitle' => __( 'Session expired' ),
|
||||
'collapseSidebar' => __( 'Collapse Sidebar' ),
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-33901';
|
||||
$wp_version = '4.4-alpha-33902';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user