WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#6941 closed defect (bug) (fixed)

Update wp.getCommentCount XML-RPC method to use wp_count_comments() function

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

Description

The get_comment_count() function that the wp.getCommentCount method should be replaced by the wp_count_comments(). The included patch makes this happen.

Attachments (1)

xmlrpc.php.diff (497 bytes) - added by josephscott 6 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 markjaquith6 years ago

Patch is malformed.

josephscott6 years ago

comment:2 josephscott6 years ago

Updated patch so the it isn't truncated :-(

comment:3 josephscott6 years ago

Can't type either:

"Updated patch so that it isn't truncated"

comment:4 ryan6 years ago

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

(In [7914]) Use wp_count_comments() in wp.getCommentCount. Props josephscott. fixes #6941

Note: See TracTickets for help on using tickets.