[wp-trac] Re: [WordPress Trac] #1194: dropdown_cats doesn't add the
correct selected tag
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 31 19:44:42 GMT 2006
#1194: dropdown_cats doesn't add the correct selected tag
-----------------------------------+----------------------------------------
Reporter: crahan | Owner: anonymous
Type: defect | Status: reopened
Priority: normal | Milestone: 2.1
Component: General | Version: 2.1
Severity: minor | Resolution:
Keywords: has-patch 2nd-opinion |
-----------------------------------+----------------------------------------
Changes (by markjaquith):
* milestone: => 2.1
* keywords: => has-patch 2nd-opinion
* version: 1.5 => 2.1
Comment:
Codex say that for the deprecated dropdown_cats() function, "selected" was
the ID of the category to be selected, but it should default to the
current category. I think we should mimic this behavior in
wp_dropdown_categories().
The problem here is that the default is zero, rather than the current
category.
Patch sets default to the current category, for is_category() views, 0
otherwise.
#3088 opened for conversion from dropdown_cats() to
wp_dropdown_categories()
--
Ticket URL: <http://trac.wordpress.org/ticket/1194>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list