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

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 5 20:16:03 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    |
-------------------------+------------------

Comment (by scribu):

 I'm in the process of writing a patch that makes {{{WP_User::__get()}}}
 call get_user_meta().

 The advantage is that you don't have to duplicate all the metadata in
 {{{WP_User->data}}} anymore.

 The drawback is that using {{{$user->somefunkykey}}}, where meta_key is
 actually {{{some-funky-key}}} won't work anymore and there's no way around
 it, since you can't guess where the dashes are.

 This should be pretty rare, but let me know if it's not an acceptable
 compromise.

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


More information about the wp-trac mailing list