[wp-trac] [WordPress Trac] #19500: User deletion doesn't clear user_meta cache

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 24 10:25:35 UTC 2012


#19500: User deletion doesn't clear user_meta cache
--------------------------+--------------------
 Reporter:  duck_         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.4
Component:  Cache         |     Version:  3.2.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by duck_):

 Replying to [comment:10 ryan]:
 > All TestWPUser pass for single site. test_is_user_member_of_blog() fails
 for multisite. It fails with and without the patch.

 There was a typo in the patch. remove_user_from_blog() was using the
 undefined variable `$user_id` and not `$id`. Updated patch also removes
 check for is_array() in is_user_member_of_blog() and the falsey check in
 get_blogs_of_user() as `$blogs` is initialised as an empty array.

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


More information about the wp-trac mailing list