[wp-trac] [WordPress Trac] #32432: Allow wp_dropdown_languages() to return, instead of output, the markup.

WordPress Trac noreply at wordpress.org
Mon May 18 21:42:35 UTC 2015


#32432: Allow wp_dropdown_languages() to return, instead of output, the markup.
-------------------------------------+------------------------------
 Reporter:  leewillis77              |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  I18N                     |     Version:  4.2
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:
-------------------------------------+------------------------------
Changes (by ocean90):

 * keywords:   => has-patch needs-refresh
 * version:  trunk => 4.2


Comment:

 Related: #29362

 I'm fine with adding an argument for returning the dropdown,I  don't see
 the need for a `get_`  function here. We can use the existing `$args`
 argument and use `echo` as the key which is `false` per default.
 @leewillis77 do you want to make a new patch for this? For inspiration
 take a look at `wp_dropdown_pages()` or `wp_dropdown_categories()`.

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


More information about the wp-trac mailing list