Ticket #8700 (closed defect (bug): fixed)

Opened 3 years ago

Last modified 2 years ago

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

Reported by: filosofo Owned by: anonymous
Priority: normal Milestone: 2.7.1
Component: Template Version: 2.7
Severity: normal Keywords: has-patch wp_dropdown_categories selected category
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

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

Change History

comment:1   ryan3 years ago

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

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

comment:2   ryan3 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.