[wp-trac] [WordPress Trac] #11254: update_usermeta and delete_usermeta do not update or destroy cache

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 10 11:20:21 UTC 2010


#11254: update_usermeta and delete_usermeta do not update or destroy cache
--------------------------+-------------------------------------------------
 Reporter:  mark8barnes   |       Owner:  ryan         
     Type:  defect (bug)  |      Status:  new          
 Priority:  normal        |   Milestone:  3.0          
Component:  Cache         |     Version:  2.8.5        
 Severity:  minor         |    Keywords:  needs-testing
--------------------------+-------------------------------------------------

Comment(by nacin):

 It's been pointed out (thanks hawy) that setup_userdata() is incorrect.
 Proper approach would be {{{$GLOBALS['current_user'] = new WP_User($id,
 $name);}}}

 We shouldn't need to call setup_userdata() at all, as that doesn't set up
 any meta in the back compat globals it maintains.

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


More information about the wp-trac mailing list