[wp-trac] [WordPress Trac] #23271: show_option_none_value is not used when using wp_dropdown_pages
WordPress Trac
noreply at wordpress.org
Wed Jan 23 12:05:20 UTC 2013
#23271: show_option_none_value is not used when using wp_dropdown_pages
-----------------------------+--------------------------
Reporter: titan21 | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: General
Version: 3.5 | Severity: normal
Keywords: 2nd-opinion |
-----------------------------+--------------------------
According to the document ion at
http://codex.wordpress.org/Function_Reference/wp_dropdown_pages. We should
be able to specify use the following:
{{{
wp_dropdown_pages(array(
"post_type"=>"page",
"show_option_none" => "--Not Selected--",
"show_option_none_value" => "notselected"
));
}}}
When the html is output, we should expect that the <option> with the text
"--Not Selected--" should have a value attribute of "notselected". The
value attribute is output but not the value:
{{{
<option value="">--Not Selected--</option>
}}}
I have tried this with pages and a custom post type which results in the
same issue.
Could someone confirm this is a valid bug?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23271>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list