Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#17074 closed defect (bug) (duplicate)

wp_list_categories hide_empty do not work when items in trash

Reported by: thomask's profile 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)

#1 @solarissmoke
14 years ago

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

#2 @scribu
14 years ago

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