Make WordPress Core

Opened 7 years ago

Closed 7 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:


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

Download all attachments as: .zip

Change History (5)

comment:1 @markjaquith7 years ago

Patch is malformed.

@josephscott7 years ago

comment:2 @josephscott7 years ago

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

comment:3 @josephscott7 years ago

Can't type either:

"Updated patch so that it isn't truncated"

comment:4 @ryan7 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.