Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#4987 closed defect (bug) (fixed)

Posts can be counted twice in taxonomy counts

Reported by: matt Owned by:
Milestone: 2.3 Priority: normal
Severity: normal Version: 2.3
Component: General Keywords:
Focuses: Cc:


Create a parent category and a child category, then put a post under both at the same time.

The parent category will then show to have 2 posts, even though it only has 1.

Change History (8)

#1 @ryan
14 years ago

Parents include child counts if pad_counts is enabled, which it is by default for hierarchical taxonomies. So, it's sort of a feature. :-)

#2 @matt
14 years ago

I do like including the counts, but if it says (7) and you click the category and see 4 posts, it can be pretty confusing. I think counts should represent what you get if you click the category link.

#3 @Viper007Bond
14 years ago

I'd personally think child counts should be included, but uniquely if possible.

#4 @ryan
14 years ago

  • Milestone changed from 2.4 to 2.3

This was fixed before release.

#5 @darkdragon
14 years ago

  • Milestone changed from 2.3 to 2.3.2

Was the patch for 2.4, backported to 2.3.x? If not, then will it be or was it already? I remember discussions about something along those lines, but I forget what the conclusion was.

#6 @JDTrower
14 years ago

Darkdragon, I just tested this in both 2.3.1 and 2.4-bleeding and like Ryan said, it was fixed before release. In both, a post posted in both a parent and child category, will only be counted once in the parent, not twice like what was occurring.

#7 @santosj
14 years ago

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

#8 @lloydbudd
14 years ago

  • Milestone changed from 2.3.2 to 2.3
Note: See TracTickets for help on using tickets.