[wp-trac] [WordPress Trac] #41857: Walker_PageDropdown doesn't set correct selected value when using value_field

WordPress Trac noreply at wordpress.org
Wed Sep 13 17:17:16 UTC 2017


#41857: Walker_PageDropdown doesn't set correct selected value when using
value_field
-------------------------------+------------------------------
 Reporter:  it4life            |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  4.8.1
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------

Comment (by birgire):

 Thanks for the example.

 > What do you think?

 I think it's a cool idea, worth exploring ;-)

 But with this callback power, comes a great responsibility, like being
 sure that it's an injective map ;-)

 Alternative (smaller step) approach, would be to add a support for a
 {{{post_name}}} selection.

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


More information about the wp-trac mailing list