Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#6884 closed enhancement (fixed)

Have wp_count_comments() support per post counts and total comments number

Reported by: josephscott's profile josephscott Owned by:
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.5.1
Component: General Keywords: has-patch
Focuses: Cc:


The function wp_count_comments() currently only counts all of the comments in a blog. The included patch allows it to optionally do comment counts on a per post basis. It also adds a total_count field.

After this get_comment_count() can be deprecated.

Attachments (1)

wp-includes--comment.php.diff (1.4 KB) - added by josephscott 16 years ago.

Download all attachments as: .zip

Change History (3)

#1 @ryan
16 years ago

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

(In [7868]) Add per post counting to wp_count_comments(). Props josephscott. fixes #6884

#2 @ryan
16 years ago

(In [7878]) Use 'counts' cache group. see #6884

Note: See TracTickets for help on using tickets.