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:
ryan 2010-06-06 15:25:27 +00:00
parent 68848f7970
commit 20de3f689a

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