Provide more helpful feedback than just "Cheatin' uh?" for permission errors in wp-admin/js/customize-controls.js
.
fixes #33685. see #14530. git-svn-id: https://develop.svn.wordpress.org/trunk@33902 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9f5b896fac
commit
dfceba6d05
@ -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;
|
||||
|
@ -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() {
|
||||
|
@ -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' ),
|
||||
|
Loading…
Reference in New Issue
Block a user