Check only if is_multisite().
git-svn-id: https://develop.svn.wordpress.org/trunk@15152 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6db04b89ed
commit
57a9d076b0
@ -77,7 +77,7 @@ case 'promote':
|
||||
}
|
||||
|
||||
// If the user doesn't already belong to the blog, bail.
|
||||
if ( !is_user_member_of_blog( $id ) )
|
||||
if ( is_multisite() && !is_user_member_of_blog( $id ) )
|
||||
wp_die(__('Cheatin’ uh?'));
|
||||
|
||||
$user = new WP_User($id);
|
||||
|
Loading…
Reference in New Issue
Block a user