[wp-trac] Re: [WordPress Trac] #5463: New XML-RPC method:
wp.getCommentCount
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 13 16:10:11 GMT 2007
#5463: New XML-RPC method: wp.getCommentCount
-------------------------+--------------------------------------------------
Reporter: josephscott | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.4
Component: XML-RPC | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+--------------------------------------------------
Comment (by redsweater):
I'm still a little troubled by the fact that this API is being driven by a
single plugin with a very specific goal. It seems hasty to implement this
very specific API for getting "counts", when probably what should be done
is a longer-term thoughtful development of a general "comments" API which
would allow fetching and editing them, as well.
I have to admit this API is a lot better than the other one which is being
superseded, but it will still look a little embarrassing in the API, I
think, to have this strangely orphaned API for getting comment counts,
with no other supporting API for comments.
For instance, what if the API for getting posts had been driven from the
start by some plugin that just happened to show you your "post count" ?
Then we'd have this weird "getPostCount" method to support forever, and it
might look kind of weird in the API. I feel like some restraint might be
in order to keep the API from bloating in response to nifty plugins.
[Rant Off] :)
--
Ticket URL: <http://trac.wordpress.org/ticket/5463#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list