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:
@@ -159,7 +159,7 @@ if ( $action ) {
|
||||
// If the user doesn't already belong to the blog, bail.
|
||||
if ( ! is_user_member_of_blog( $user_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