[wp-trac] [WordPress Trac] #22921: Allow get_users() to return array of values via 'fields' parameter

WordPress Trac noreply at wordpress.org
Sat Dec 15 08:31:59 UTC 2012


#22921: Allow get_users() to return array of values via 'fields' parameter
-------------------------------------+------------------------------
 Reporter:  chipbennett              |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Users                    |     Version:  3.5
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------

Comment (by dd32):

 > If you change the behaviour, you'll break lots of existing code

 If you take a look at the patch, the only code that will break, looking at
 the patch, are those passing the fields parameter as one of the following,
 and expecting back a list of user_id's, a broken assumption and code to
 start with..
 `array( 'ID', 'user_login', 'user_pass', 'user_nicename', 'user_email',
 'user_url', 'user_registered', 'user_activation_key', 'user_status',
 'display_name' )`

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


More information about the wp-trac mailing list