General: Further improve error messages following [42648].
Props kristastevens, melchoyce. Fixes #38332 for trunk. Built from https://develop.svn.wordpress.org/trunk@42719 git-svn-id: http://core.svn.wordpress.org/trunk@42547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
if ( ! current_user_can( 'edit_posts' ) ) {
|
||||
wp_die(
|
||||
'<h1>' . __( 'You don’t have permission to do this.' ) . '</h1>' .
|
||||
'<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' .
|
||||
'<p>' . __( 'Sorry, you are not allowed to edit comments.' ) . '</p>',
|
||||
403
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user