[wp-trac] [WordPress Trac] #15458: Lazy-load usermeta into the user object
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 6 00:09:42 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):
> perhaps we should standardize on using a get() or get_meta() accessor so
we can handle dashed keys
Well, you can always do {{{get_user_meta( $user->ID, 'some-key', true )}}}
or just {{{$user->{'some-key'}}}}.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15458#comment:40>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list