Changeset 17380
- Timestamp:
- 02/03/2011 12:17:35 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/wp-includes/ms-functions.php
r17228 r17380 210 210 $user = new WP_User($user_id); 211 211 212 if ( empty( $user->ID ) ) 212 if ( empty( $user->ID ) ) { 213 restore_current_blog(); 213 214 return new WP_Error('user_does_not_exist', __('That user does not exist.')); 215 } 214 216 215 217 if ( !get_user_meta($user_id, 'primary_blog', true) ) { … … 270 272 // wp_revoke_user($user_id); 271 273 $user = new WP_User($user_id); 272 if ( empty( $user->ID ) ) 274 if ( empty( $user->ID ) ) { 275 restore_current_blog(); 273 276 return new WP_Error('user_does_not_exist', __('That user does not exist.')); 277 } 274 278 275 279 $user->remove_all_caps();
Note: See TracChangeset
for help on using the changeset viewer.