[wp-trac] [WordPress Trac] #22057: WP_User_Query by default doesn't return the meta values
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 1 16:00:07 UTC 2012
#22057: WP_User_Query by default doesn't return the meta values
--------------------------------------+--------------------
Reporter: markoheijnen | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.5
Component: Users | Version: trunk
Severity: normal | Resolution:
Keywords: dev-feedback needs-patch |
--------------------------------------+--------------------
Comment (by ryan):
Do we need all_with_meta now that WP_User loads meta on demand? We could
always return WP_User objects from WP_User_Query and avoid the
unconditional update_meta_cache() call in cache_users(). That leaves
deciding whether to slurp * from the users table like 'all' does or slurp
the IDs and then pass to cache_users() to query for users not already
cached (with update_meta_cache() removed) like all_with_meta does.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22057#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list