WordPress.org

Make WordPress Core

Changeset 33902


Ignore:
Timestamp:
09/04/15 03:39:33 (2 years ago)
Author:
SergeyBiryukov
Message:

Provide more helpful feedback than just "Cheatin' uh?" for permission errors in wp-admin/js/customize-controls.js.

fixes #33685. see #14530.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/customize-controls.css

    r33599 r33902  
    12091209} 
    12101210 
     1211body.cheatin h1 { 
     1212    border-bottom: 1px solid #dadada; 
     1213    clear: both; 
     1214    color: #666; 
     1215    font: 24px "Open Sans", sans-serif; 
     1216    margin: 30px 0 0 0; 
     1217    padding: 0; 
     1218    padding-bottom: 7px; 
     1219} 
     1220 
    12111221body.cheatin p { 
    12121222    font-size: 14px; 
  • trunk/src/wp-admin/js/customize-controls.js

    r33837 r33902  
    30293029 
    30303030        cheatin: function() { 
    3031             $( document.body ).empty().addClass('cheatin').append( '<p>' + api.l10n.cheatin + '</p>' ); 
     3031            $( document.body ).empty().addClass( 'cheatin' ).append( 
     3032                '<h1>' + api.l10n.cheatin + '</h1>' + 
     3033                '<p>' + api.l10n.notAllowed + '</p>' 
     3034            ); 
    30323035        }, 
    30333036 
  • trunk/src/wp-includes/script-loader.php

    r33517 r33902  
    429429        'close'              => __( 'Close' ), 
    430430        'cheatin'            => __( 'Cheatin&#8217; uh?' ), 
     431        'notAllowed'         => __( 'You are not allowed to customize the appearance of this site.' ), 
    431432        'previewIframeTitle' => __( 'Site Preview' ), 
    432433        'loginIframeTitle'   => __( 'Session expired' ), 
Note: See TracChangeset for help on using the changeset viewer.