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

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 21 18:51:47 UTC 2011

#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:                |

Comment (by ryan):

 Looking through core and a few plugins, most places use empty() or
 is_array() or (array) when dealing with the return value so they are safe
 with either array of false. One place does this though:

 array_key_exists($blog_id, get_blogs_of_user($user_id)) )

 Perhaps returning an empty array for both single and multi would be
 safest, as well as more semantic.

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

More information about the wp-trac mailing list