From 1ec4b77ac29c409b8cb651c2cfdceb7ba03c2bea Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 2 Sep 2015 17:05:01 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@33857 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/customize.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/customize.php b/src/wp-admin/customize.php index bfc96233eb..c19bdced3a 100644 --- a/src/wp-admin/customize.php +++ b/src/wp-admin/customize.php @@ -13,7 +13,11 @@ define( 'IFRAME_REQUEST', true ); require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can( 'customize' ) ) { - wp_die( __( 'Cheatin’ uh?' ), 403 ); + wp_die( + '

' . __( 'Cheatin’ uh?' ) . '

' . + '

' . __( 'You are not allowed to customize the appearance of this site.' ) . '

', + 403 + ); } wp_reset_vars( array( 'url', 'return' ) );