WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#17074 closed defect (bug) (duplicate)

wp_list_categories hide_empty do not work when items in trash

Reported by: thomask Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: Taxonomy Keywords:
Focuses: Cc:

Description

wp_list_categories hide_empty function show terms with the items in trash only (and probably also in draft state and other non visible modes), the same with show_count, which show numbers also for not accesible articles.

The same bug will be probably in other similar functions, e.g wp_dropdown_categories as it is probably because of checking the new post 3.0 possibilities of post_status in the function which increases term_taxonomy count field (my blind guess) - i just cannot find where the bug sits

P.S.: IMO we should also switch the naming to wp_list_terms wp_dropdown_terms ... and create wp_list_categories... as child functions

Change History (2)

comment:1 @solarissmoke4 years ago

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

comment:2 @scribu4 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.