[wp-trac] [WordPress Trac] #14047: get_user_by() makes use of the cache even if it does not exists any longer

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 24 21:57:36 UTC 2010


#14047: get_user_by() makes use of the cache even if it does not exists any longer
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:                
     Type:  defect (bug)  |      Status:  new           
 Priority:  normal        |   Milestone:  3.1           
Component:  General       |     Version:  2.9.2         
 Severity:  normal        |    Keywords:  has-patch gsoc
--------------------------+-------------------------------------------------
Changes (by wojtek.szkutnik):

  * keywords:  needs-patch => has-patch gsoc


Comment:

 Patch added. Using is_object and method_exists is as safe as it could get.
 I'm only wondering if there's any need to check if the method exists if
 $wp_object_cache is  valid?

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


More information about the wp-trac mailing list