mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
General: Further improve error messages following [42648].
Props kristastevens, melchoyce. Fixes #38332 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@42719 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -12,7 +12,7 @@ require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
|
||||
if ( ! current_user_can( 'list_users' ) ) {
|
||||
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 list users.' ) . '</p>',
|
||||
403
|
||||
);
|
||||
@@ -141,7 +141,7 @@ switch ( $wp_list_table->current_action() ) {
|
||||
// If the user doesn't already belong to the blog, bail.
|
||||
if ( is_multisite() && ! is_user_member_of_blog( $id ) ) {
|
||||
wp_die(
|
||||
'<h1>' . __( 'An error has occurred.' ) . '</h1>' .
|
||||
'<h1>' . __( 'Something went wrong.' ) . '</h1>' .
|
||||
'<p>' . __( 'One of the selected users is not a member of this site.' ) . '</p>',
|
||||
403
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user