[wp-trac] [WordPress Trac] #54554: Allow returning content for wp_dropdown_roles()

WordPress Trac noreply at wordpress.org
Mon Sep 19 21:29:10 UTC 2022


#54554: Allow returning content for wp_dropdown_roles()
------------------------------------+-----------------------------
 Reporter:  nithi22                 |       Owner:  (none)
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Future Release
Component:  Role/Capability         |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+-----------------------------
Changes (by davidbaumwald):

 * keywords:  has-patch => has-patch dev-feedback
 * milestone:  6.1 => Future Release


Comment:

 I'm not sure about this.  Every instance I see in core where
 `wp_dropdown_roles` is called, it's being output.  `wp_dropdown_roles`
 only creates the `options`, not the outer `select` element.

 One thing I could see going here is maybe a `apply_filters` call at the
 `echo`.

 Marking for `dev-feedback` and moving to `Future Release` until this has a
 more solid direction.

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


More information about the wp-trac mailing list