WordPress.org

Make WordPress Core

Opened 11 years ago

Closed 7 years ago

#9875 closed defect (bug) (fixed)

Postcount not set for parent in category dropdown.

Reported by: petervanderdoes Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Taxonomy Keywords: has-patch
Focuses: Cc:

Description

When showing categories in a dropdown with show_count and hierarchical , the parent of the categories won't show the total amount of posts of its children.
When selecting a list this teh total amount is shown.

Attachments (1)

padcount_in_dropdown.diff (550 bytes) - added by petervanderdoes 11 years ago.

Download all attachments as: .zip

Change History (13)

#1 @petervanderdoes
11 years ago

The padcount_in_dropdown patch should fix the bug.

#2 @Denis-de-Bernardy
11 years ago

  • Keywords has-patch added

#3 @Denis-de-Bernardy
11 years ago

  • Milestone changed from 2.8 to 2.9

punting per IRC discussion

#4 @janeforshort
11 years ago

  • Milestone changed from 2.9 to Future Release

No community testing of patch > punting b/c we're in beta.

#5 @petervanderdoes
11 years ago

  • Keywords has-patch removed
  • Version changed from 2.8 to 2.9

Postcount in the dropdown is not the sum of the parent and children.

#6 in reply to: ↑ description @hakre
11 years ago

  • Keywords reporter-feedback added

Replying to petervanderdoes:

When showing categories in a dropdown with show_count and hierarchical , the parent of the categories won't show the total amount of posts of its children.

Well, should it? Is this a bug or a enhancement / feature request? Please name the API functions you're experiencing this.

#7 @petervanderdoes
11 years ago

  • Keywords reporter-feedback removed

It works that way in the wp_list_categories, not in wp_dropdown_categories

#8 @hakre
11 years ago

  • Keywords has-patch added
  • Version changed from 2.9 to 3.0

So your suggestion here would streamline the behaviour in wp_dropdown_categroies with wp_list_categories, right?

If so I think this is a good idea to have more consistency between the two.

#9 @hakre
11 years ago

Realted: #11514

#10 @filosofo
10 years ago

  • Owner filosofo deleted
  • Status changed from new to assigned

#11 @kevinB
10 years ago

  • Cc kevinB added

#12 @wonderboymusic
7 years ago

  • Milestone Future Release deleted
  • Resolution set to fixed
  • Status changed from assigned to closed

This got committed at some point

Note: See TracTickets for help on using tickets.