Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 14 years ago

#7446 closed enhancement (fixed)

XMLRPC Comments API

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

Download all attachments as: .zip

Change History (19)

#1 @ryan
16 years ago

  • Keywords blessed added

#2 @josephscott
16 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/

@ryan
16 years ago

Incomplete and untested preview

@ryan
16 years ago

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

@ryan
16 years ago

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

@ryan
16 years ago

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

@ryan
16 years ago

Allow fetching comments for a particular post

#3 @ryan
16 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.

#4 @redsweater
16 years ago

  • Cc redsweater added

@ryan
16 years ago

Working newComment

#5 @ryan
16 years ago

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

@ryan
16 years ago

Handle anonymous comments

@ryan
16 years ago

Add offset and number support to getComments

@ryan
16 years ago

Couple small corrections

#7 @ryan
16 years ago

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

#8 @MtDewVirus
16 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.

#9 @ryan
16 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

#10 @ryan
16 years ago

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

Note: See TracTickets for help on using tickets.