WordPress.org

Make WordPress Core

Changeset 37197


Ignore:
Timestamp:
04/14/2016 01:57:31 AM (4 years ago)
Author:
SergeyBiryukov
Message:

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

Props Frozzare.
Fixes #36466.

Location:
trunk/src
Files:
3 edited

Legend:

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

    r36606 r37197  
    1616    wp_die(
    1717        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    18         '<p>' . __( 'You are not allowed to customize the appearance of this site.' ) . '</p>',
     18        '<p>' . __( 'You are not allowed to customize this site.' ) . '</p>',
    1919        403
    2020    );
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r37077 r37197  
    388388
    389389        if ( ! current_user_can( 'customize' ) ) {
    390             $this->wp_die( -1, __( 'You are not allowed to customize the appearance of this site.' ) );
     390            $this->wp_die( -1, __( 'You are not allowed to customize this site.' ) );
    391391        }
    392392
  • trunk/src/wp-includes/script-loader.php

    r37171 r37197  
    444444        'close'              => __( 'Close' ),
    445445        'cheatin'            => __( 'Cheatin&#8217; uh?' ),
    446         'notAllowed'         => __( 'You are not allowed to customize the appearance of this site.' ),
     446        'notAllowed'         => __( 'You are not allowed to customize this site.' ),
    447447        'previewIframeTitle' => __( 'Site Preview' ),
    448448        'loginIframeTitle'   => __( 'Session expired' ),
Note: See TracChangeset for help on using the changeset viewer.