Make WordPress Core


Ignore:
Timestamp:
07/13/2010 09:27:05 PM (12 years ago)
Author:
nacin
Message:

Fix checking for whether WP_User object is actually a user. props filosofo, fixes #13903 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-edit.php

    r15351 r15404  
    266266            foreach ( (array) $newroles as $userid => $role ) {
    267267                $user = new WP_User( $userid );
    268                 if ( ! $user )
     268                if ( empty( $user->ID ) )
    269269                    continue;
    270270                $user->for_blog( $id );
Note: See TracChangeset for help on using the changeset viewer.