[wp-trac] [WordPress Trac] #15458: Lazy-load usermeta into the user object

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 6 14:52:18 UTC 2011


#15458: Lazy-load usermeta into the user object
-------------------------------------+------------------
 Reporter:  nacin                    |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  3.3
Component:  Performance              |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------
Changes (by scribu):

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


Comment:

 [attachment:lazy-load.2.diff]:

 * updated wp_insert_user() and wp_update_user() to use
 WP_User::get_data_by() instead of get_userdata()
 * sanitize_user_object() is deprecated. Sanitization is handled in
 {{{__get()}}}

 Everything seems to work.

 PS: The patch can be applied using {{{patch -p1}}}, instead of {{{patch
 -p0}}}.

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


More information about the wp-trac mailing list