[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:19:04 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 swissspidy):
Replying to [comment:46 johnbillion]:
> Does (and should) a query that uses `role__not_in` return users without
a role? We'll need tests to cover this.
It currently does, and IMHO also should. If you want users without a
specific role then it doesn't matter if they have another role or none at
all. I just added a test for this in [attachment:22212.5.patch
22212.5.patch].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22212#comment:48>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list