[wp-trac] Re: [WordPress Trac] #5463: New XML-RPC method:
wp.getCommentCount
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 13 17:53:07 GMT 2007
#5463: New XML-RPC method: wp.getCommentCount
-------------------------+--------------------------------------------------
Reporter: josephscott | Owner: westi
Type: enhancement | Status: assigned
Priority: normal | Milestone: 2.4
Component: XML-RPC | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+--------------------------------------------------
Comment (by josephscott):
The general desire to expose this information certainly did come to the
forefront because of this one tool. But is that really a good reason to
disregard it? It isn't like no one else will be able to use this if they
want to.
I agree that an expanded comments API is a good idea, and this new method
is a step that direction. Before submitting this I considered skipping it
entirely, but I didn't for two reasons. One, there is obviously an
interest in exposing this specific information (comment numbers) and the
difference in the size of the data. In order to come up with these
numbers via a general comment editing API you'd have to send a
significantly larger amount of data across the wire.
I have every intention of adding more comment methods, it seems desirable
to have the ability to fetch and modify and perhaps even create comments
via XML-RPC. But I'd rather not wait for that to be complete in order to
start adding additional useful methods now.
On the embedded query, I totally agree. I was rather surprised not to see
a function for doing this already. Would a similar wp_get_comment_count()
function in wp-includes/comment.php be reasonable? I can put together a
new patch to do that.
--
Ticket URL: <http://trac.wordpress.org/ticket/5463#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list