Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#4987 closed defect (bug) (fixed)

Posts can be counted twice in taxonomy counts

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

Description

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)

comment:1   ryan6 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. :-)

comment:2   matt6 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.

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

comment:4   ryan6 years ago

  • Milestone changed from 2.4 to 2.3

This was fixed before release.

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

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.

  • Resolution set to fixed
  • Status changed from new to closed
  • Milestone changed from 2.3.2 to 2.3
Note: See TracTickets for help on using tickets.