[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
Tue Oct 6 14:02:29 UTC 2015


#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:  4.4
Component:  Users                     |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------

Comment (by johnbillion):

 On both single site and multisite, users can exist without a role. The
 `role__not_in` argument could therefore be ambiguous, unless its behaviour
 is strictly defined. Does (and should) a query that uses `role__not_in`
 return users without a role? We'll need tests to cover this.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/22212#comment:46>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list