[wp-trac] [WordPress Trac] #41857: Walker_PageDropdown doesn't set correct selected value when using value_field
WordPress Trac
noreply at wordpress.org
Mon Sep 11 17:16:17 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 | Keywords:
Focuses: |
-------------------------------+-----------------------------
If the ''value_field'' is different from ID, the selected value was not
set.
Function Walker_PageDropdown::start_el
{{{
if ( $page->ID == $args['selected'] )
$output .= ' selected="selected"';
}}}
See also #32330
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41857>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list