WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 8 months 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 5 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 petervanderdoes5 years ago

The padcount_in_dropdown patch should fix the bug.

comment:2 Denis-de-Bernardy5 years ago

  • Keywords has-patch added

comment:3 Denis-de-Bernardy5 years ago

  • Milestone changed from 2.8 to 2.9

punting per IRC discussion

comment:4 janeforshort4 years ago

  • Milestone changed from 2.9 to Future Release

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

comment:5 petervanderdoes4 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.

comment:6 in reply to: ↑ description hakre4 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.

comment:7 petervanderdoes4 years ago

  • Keywords reporter-feedback removed

It works that way in the wp_list_categories, not in wp_dropdown_categories

comment:8 hakre4 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.

comment:9 hakre4 years ago

Realted: #11514

comment:10 filosofo4 years ago

  • Owner filosofo deleted
  • Status changed from new to assigned

comment:11 kevinB4 years ago

  • Cc kevinB added

comment:12 wonderboymusic8 months 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.