mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Text Changes: Unify permission error messages.
The new format looks like "Sorry, you are not allowed to <action>.". This provides a consistent experience for all error messages related to missing permissions. It also reduces the number of similar strings and allows translators to provide a consistent style in their language. Props ramiy, Presskopp. Fixes #34521. git-svn-id: https://develop.svn.wordpress.org/trunk@37914 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -11,7 +11,7 @@ require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
if ( ! current_user_can( 'edit_posts' ) ) {
|
||||
wp_die(
|
||||
'<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' .
|
||||
'<p>' . __( 'You are not allowed to edit comments.' ) . '</p>',
|
||||
'<p>' . __( 'Sorry, you are not allowed to edit comments.' ) . '</p>',
|
||||
403
|
||||
);
|
||||
}
|
||||
@@ -210,7 +210,7 @@ if ( isset( $_REQUEST['error'] ) ) {
|
||||
$error_msg = __( 'Invalid comment ID.' );
|
||||
break;
|
||||
case 2 :
|
||||
$error_msg = __( 'You are not allowed to edit comments on this post.' );
|
||||
$error_msg = __( 'Sorry, you are not allowed to edit comments on this post.' );
|
||||
break;
|
||||
}
|
||||
if ( $error_msg )
|
||||
|
||||
Reference in New Issue
Block a user