Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#21135 closed defect (bug) (invalid)

hide_if_empty works the wrong way

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


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)

#1 @lspcity
6 years ago

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

#2 @SergeyBiryukov
6 years ago

  • 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.