[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 19:38:53 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 scribu):

 +1 for always returning WP_User objects. Also:

 {{{
 if ( 'all_with_meta' == $q['fields'] ) {
   $q['fields'] = 'all';
   $q['cache_results'] = true;
 }
 }}}

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


More information about the wp-trac mailing list