Make WordPress Core

Opened 7 weeks ago

Last modified 7 weeks ago

#54554 new enhancement

Allow returning content for wp_dropdown_roles()

Reported by: nithi22 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Role/Capability Keywords: has-patch
Focuses: Cc:


Currently wp_dropdown_roles() function is set to echo the content instead of the option to echo or return the content. Similar wp_dropdown_* functions allows to echo or not the content.

Change History (2)

#1 @sabernhardt
7 weeks ago

  • Component changed from General to Role/Capability

This ticket was mentioned in PR #2006 on WordPress/wordpress-develop by nithinjohn22.

7 weeks ago

  • Keywords has-patch added

Currently wp_dropdown_roles function only prints the elements for the role selectors not to display or retrieve the HTML like other dropdown functions.

Trac ticket: https://core.trac.wordpress.org/ticket/54554

Note: See TracTickets for help on using tickets.