WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#7446 closed enhancement (fixed)

XMLRPC Comments API

Reported by: ryan Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: XML-RPC Keywords: comments xmlrpc blessed
Focuses: Cc:

Description

Add API to XMLPRC for retrieving and managing comments.

Attachments (9)

7446.diff (4.7 KB) - added by ryan 6 years ago.
Incomplete and untested preview
7446.2.diff (8.2 KB) - added by ryan 6 years ago.
Drop separate method for setting comment status. Flesh out editComment.
7446.3.diff (12.8 KB) - added by ryan 6 years ago.
Add get_comments(). Register methods. Deprecate some old stuff.
7446.4.diff (13.4 KB) - added by ryan 6 years ago.
All methods tested except newComment. It needs some more work.
7446.5.diff (13.7 KB) - added by ryan 6 years ago.
Allow fetching comments for a particular post
7446.6.diff (14.2 KB) - added by ryan 6 years ago.
Working newComment
7446.7.diff (15.5 KB) - added by ryan 6 years ago.
Handle anonymous comments
7446.8.diff (15.7 KB) - added by ryan 6 years ago.
Add offset and number support to getComments
7446.9.diff (15.7 KB) - added by ryan 6 years ago.
Couple small corrections

Download all attachments as: .zip

Change History (19)

comment:1 ryan6 years ago

  • Keywords blessed added

comment:2 josephscott6 years ago

  • Cc josephscott added
  • Component changed from General to XML-RPC
  • Type changed from defect to enhancement

There's been some discussion about this on the wp-xmlrpc list: http://comox.textdrive.com/pipermail/wp-xmlrpc/

ryan6 years ago

Incomplete and untested preview

ryan6 years ago

Drop separate method for setting comment status. Flesh out editComment.

ryan6 years ago

Add get_comments(). Register methods. Deprecate some old stuff.

ryan6 years ago

All methods tested except newComment. It needs some more work.

ryan6 years ago

Allow fetching comments for a particular post

comment:3 ryan6 years ago

getComments() accepts optional status and post_id. A separate getPostComments() has been suggested. It'd probably just be an alias to getComments() with different argument passing if we added it.

newComment() needs a little more work. All other methods have had basic testing and are hopefully complete.

comment:4 redsweater6 years ago

  • Cc redsweater added

ryan6 years ago

Working newComment

comment:5 ryan6 years ago

In 7446.6 all methods are completed and tested. I left support for unregistered commenting out of newComments for now.

ryan6 years ago

Handle anonymous comments

ryan6 years ago

Add offset and number support to getComments

ryan6 years ago

Couple small corrections

comment:7 ryan6 years ago

(In [8543]) XML-RPC comments API. see #7446

comment:8 MtDewVirus6 years ago

When editing a comment in moderation, http://trac.wordpress.org/browser/trunk/wp-includes/comment.php?rev=8543#L863 is causing the comment to be be approved with any changes to the Approval Status.

comment:9 ryan6 years ago

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

(In [8622]) comment_approved can be zero, so check with isset instead of empty. fixes #7446

comment:10 ryan6 years ago

(In [8698]) Typo fix. Props josephscott. see #7446

Note: See TracTickets for help on using tickets.