[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 17:00:11 UTC 2015
#22212: WP_User_Query( array('role' => $role) ) should accept array or not return
anything if array
--------------------------------------+---------------------------
Reporter: thomask | Owner: boonebgorges
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.4
Component: Users | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------------
Changes (by boonebgorges):
* owner: => boonebgorges
* status: reopened => assigned
Comment:
swissspidy - Thanks for the dynamite patch, and especially for the tests
<3
> If you want users without a specific role then it doesn't matter if
they have another role or none at all.
Agreed.
I think this looks good to go. One fix I'm going to make is that you're
nesting one level too deep when appending `$role__in_query`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22212#comment:49>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list