[wp-trac] [WordPress Trac] #22212: WP_User_Query( array('role' => $role) ) should accept array or not return anything if array

WordPress Trac noreply at wordpress.org
Mon Mar 25 14:35:24 UTC 2013


#22212: WP_User_Query( array('role' => $role) ) should accept array or not return
anything if array
-------------------------------------------------+-------------------------
 Reporter:  thomask                              |       Owner:
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Users                                |  Review
 Severity:  normal                               |     Version:
 Keywords:  has-patch needs-unit-tests needs-    |  Resolution:
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by alex-ye):

 I think it should be work like this
 {{{
 WP_User_Query( array('role__in' => array( 'role-1', 'role-2' ) ) )
 }}}

 And when array is used in 'role' arg , it should return null .

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


More information about the wp-trac mailing list