Make WordPress Core

Changeset 33857


Ignore:
Timestamp:
09/02/2015 05:05:01 PM (9 years ago)
Author:
SergeyBiryukov
Message:

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

props ericlewis, kraftbj, lukecarbis, mrmist.
fixes #33668. see #14530.

File:
1 edited

Legend:

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

    r33849 r33857  
    1414
    1515if ( ! current_user_can( 'customize' ) ) {
    16     wp_die( __( 'Cheatin’ uh?' ), 403 );
     16    wp_die(
     17        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
     18        '<p>' . __( 'You are not allowed to customize the appearance of this site.' ) . '</p>',
     19        403
     20    );
    1721}
    1822
Note: See TracChangeset for help on using the changeset viewer.