Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#8700 closed defect (bug) (fixed)

"selected" argument doesn't work for "none" and "all" options in wp_dropdown_categories

Reported by: filosofo's profile filosofo Owned by:
Milestone: 2.7.1 Priority: normal
Severity: normal Version: 2.7
Component: Template Keywords: has-patch wp_dropdown_categories selected category
Focuses: Cc:

Description

You can pass a value as the "selected" category for the wp_dropdown_categories() dropdown, but it is ignored for the "none" and "all" values (0 and -1, respectively).

Patch fixes this.

Attachments (1)

selected_none_all_dropdown_cats.diff (933 bytes) - added by filosofo 16 years ago.

Download all attachments as: .zip

Change History (3)

#1 @ryan
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10243]) Fix selected for none and all. Props filosofo. fixes #8700 for trunk

#2 @ryan
16 years ago

(In [10244]) Fix selected for none and all. Props filosofo. fixes #8700 for 2.7

Note: See TracTickets for help on using tickets.