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:
Ryan Boren 2010-06-06 15:25:27 +00:00
parent 6db04b89ed
commit 57a9d076b0
1 changed files with 1 additions and 1 deletions

View File

@ -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);