[wp-trac] [WordPress Trac] #20460: Notice with clean_user_cache when deleting a user

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 20 13:41:06 UTC 2012


#20460: Notice with clean_user_cache when deleting a user
--------------------------+------------------------------
 Reporter:  blueyed       |       Owner:  duck_
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Multisite     |     Version:  3.4
 Severity:  minor         |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by duck_):

 Replying to [comment:6 blueyed]:
 > This code should take into account that `WP_User->get_data_by` might
 return false.
 > This would lead to a fatal error then with `$user->exists()` (where
 `$user` is a non-object).

 The WP_User::get_data_by() method is not used directly anymore. It was
 replaced with "new WP_User()" which will always return a WP_User object.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20460#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list