Opened 11 months ago

Closed 11 months ago

Last modified 11 months ago

#21135 closed defect (bug) (invalid)

hide_if_empty works the wrong way

Reported by: lspcity Owned by:
Priority: normal Milestone:
Component: General Version: 3.4
Severity: normal Keywords:
Cc:

Description

In the function wp_dropdown_categories the option hide_if_empty works the wrong way.

Default is set to false and empty categories are not shown.
Set it to true, empty categories are shown.

Change History (2)

  • Resolution set to invalid
  • Status changed from new to closed
  • Milestone Awaiting Review deleted

As stated in Codex, default hide_if_empty value for wp_dropdown_categories() is 1/true:
http://core.trac.wordpress.org/browser/tags/3.4.1/wp-includes/category-template.php#L299

Note: See TracTickets for help on using tickets.