[wp-trac] [WordPress Trac] #12494: Allow selectable value in Walker_*Dropdown classes

WordPress Trac noreply at wordpress.org
Thu Feb 5 19:03:54 UTC 2015


#12494: Allow selectable value in Walker_*Dropdown classes
------------------------------------+---------------------------
 Reporter:  jfarthing84             |       Owner:  boonebgorges
     Type:  enhancement             |      Status:  closed
 Priority:  normal                  |   Milestone:  4.2
Component:  Posts, Post Types       |     Version:
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  dev-feedback has-patch  |     Focuses:  template
------------------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31338"]:
 {{{
 #!CommitTicketReference repository="" revision="31338"
 Introduce `'value_field'` parameter to `wp_dropdown_pages()`.

 This parameter allows developers to choose the post field that will be
 used to
 fill in the 'option' attribute of the generated dropdown markup.

 See [31006] #30306 for a parallel enhancement in
 `wp_dropdown_categories()`.

 Props jfarthing84.
 Fixes #12494.
 }}}

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


More information about the wp-trac mailing list