mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Check only if is_multisite().
git-svn-id: http://svn.automattic.com/wordpress/trunk@15152 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
68848f7970
commit
20de3f689a
@ -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