Ticket #6884 (closed enhancement: fixed)

Opened 4 months ago

Last modified 4 months ago

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

Reported by: josephscott Assigned to: anonymous
Priority: normal Milestone: 2.6
Component: General Version: 2.5.1
Severity: normal Keywords: has-patch
Cc: josephscott

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

wp-includes--comment.php.diff (1.4 kB) - added by josephscott on 04/30/08 23:44:42.

Change History

04/30/08 23:44:42 changed by josephscott

  • attachment wp-includes--comment.php.diff added.

05/01/08 16:52:50 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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

05/02/08 19:42:46 changed by ryan

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