Make WordPress Core

Opened 15 years ago

Closed 14 years ago

#9715 closed defect (bug) (duplicate)

Category List in a drop down does not pad term counts

Reported by: ctassisf's profile CTassisF Owned by: markjaquith's profile markjaquith
Milestone: Priority: low
Severity: minor Version: 2.7.1
Component: Template Keywords: has-patch
Focuses: Cc:

Description

Hello.
I am using WordPress 2.7.1.
I have a blog with many categories, subcategories, sub-subcategories etc. When I post, I link that post only to the last sub-subcategory available.
The issue is: Sometimes, WordPress does not consider a post linked to a subcategory as a post of the mother category of that subcategory. As it does not count a post linked to a subcategory as a post of the mother category, some plugins hide that category because it is apparently empty.
Look at this pictures so you'll be able to understand what I am saying:
http://cesar.z0p.org/CategoryList1.PNG
http://cesar.z0p.org/CategoryList2.PNG
I was using the official WordPress category list widget plugin on both of them.
Could you please fix that?
Thanks in advance.
César

Attachments (3)

Category List 1.PNG (15.6 KB) - added by CTassisF 15 years ago.
Category List 2.PNG (18.8 KB) - added by CTassisF 15 years ago.
9715.diff (636 bytes) - added by scohoust 15 years ago.

Download all attachments as: .zip

Change History (10)

#1 @thee17
15 years ago

  • Milestone changed from 2.7.2 to Future Release

#2 @Denis-de-Bernardy
15 years ago

  • Component changed from General to Template
  • Summary changed from Category List Issue to Category List in a drop down does not pad term counts

#3 @Denis-de-Bernardy
15 years ago

  • Keywords needs-patch added
  • Priority changed from normal to low
  • Severity changed from normal to minor

#4 @Denis-de-Bernardy
15 years ago

  • Milestone changed from Future Release to 2.9

@scohoust
15 years ago

#5 @scohoust
15 years ago

  • Keywords has-patch added; needs-patch removed

Patch adds pad counts to drop down function similar to that in wp_list_categories.

#6 @markjaquith
15 years ago

  • Milestone changed from 2.9 to 3.0
  • Owner changed from anonymous to markjaquith
  • Status changed from new to reviewing

Will review for 3.0

#7 @dd32
14 years ago

  • Milestone 3.0 deleted
  • Resolution set to duplicate
  • Status changed from reviewing to closed

See: [11981] Pad counts in wp_dropdown_categories. Props mtdewvirus. fixes #10870

Note: See TracTickets for help on using tickets.