[wp-trac] [WordPress Trac] #24635: update_user_caches() should support accepting a WP_User instance

WordPress Trac noreply at wordpress.org
Thu Oct 3 16:42:31 UTC 2013


#24635: update_user_caches() should support accepting a WP_User instance
--------------------------------------------------+------------------
 Reporter:  dd32                                  |       Owner:
     Type:  defect (bug)                          |      Status:  new
 Priority:  normal                                |   Milestone:  3.8
Component:  Users                                 |     Version:  3.0
 Severity:  normal                                |  Resolution:
 Keywords:  has-patch 3.7-early needs-unit-tests  |
--------------------------------------------------+------------------
Changes (by nacin):

 * keywords:  has-patch 3.7-early => has-patch 3.7-early needs-unit-tests
 * milestone:  3.7 => 3.8


Comment:

 Replying to [comment:5 ryan]:
 > Is $user = $user->data necessary?

 Yeah, that's the operative part of the patch. It's the underlying stdClass
 DB row that we want to store in the cache.

 This needs tests, I'd say.

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


More information about the wp-trac mailing list