Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#38135 closed enhancement (fixed)

Support 'role__in' and 'role__not_in' arguments in wp_dropdown_users()

Reported by: sillybean's profile sillybean Owned by: boonebgorges's profile boonebgorges
Milestone: 4.7 Priority: normal
Severity: normal Version: 4.7
Component: Users Keywords: has-patch
Focuses: administration Cc:


get_users() supports 'rolein' and 'rolenot_in' arguments as of 4.4, but wp_dropdown_users() has not been updated to match.

Attachments (1)

38135.diff (997 bytes) - added by sillybean 8 years ago.
Support 'rolein' and 'rolenot_in' arguments in wp_dropdown_users()

Download all attachments as: .zip

Change History (4)

8 years ago

Support 'rolein' and 'rolenot_in' arguments in wp_dropdown_users()

#1 @sillybean
8 years ago

  • Focuses administration added
  • Keywords has-patch added

#2 @boonebgorges
8 years ago

  • Milestone changed from Awaiting Review to 4.7

Sounds good. Let's add 'role' too, while we're at it.

#3 @boonebgorges
8 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 38651:

Allow 'role' parameters to be passed to wp_dropdown_users().

wp_dropdown_users() contains a whitelist of function params that are
passed through to get_users(). role, role__in, and role__not_in
have now been added to this whitelist.

Props sillybean.
Fixes #38135.

Note: See TracTickets for help on using tickets.