Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#6884 closed enhancement (fixed)

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

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

Description

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 18 years ago.

Download all attachments as: .zip

Change History (3)

#1 @ryan
18 years ago

  • Resolutionfixed
  • Status newclosed

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

#2 @ryan
18 years ago

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

Note: See TracTickets for help on using tickets.