[wp-trac] [WordPress Trac] #18433: Retrieve a list of posts via XML-RPC
WordPress Trac
wp-trac at lists.automattic.com
Wed Dec 28 16:27:21 UTC 2011
#18433: Retrieve a list of posts via XML-RPC
------------------------------------------+------------------------------
Reporter: nprasath002 | Owner: westi
Type: feature request | Status: reviewing
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version:
Severity: normal | Resolution:
Keywords: has-patch mobile westi-likes |
------------------------------------------+------------------------------
Comment (by maxcutler):
Ok, another rev of the patch.
I've extracted the return value preparation code into a new function
('prepare_post') so that it can be reused in wp.getPost (#18432).
I've added 'orderby' and 'order' to the filters parameter to allow sorting
of the resultset.
I'm tempted to abandon the back-compat naming convention in the return
value, and instead use the variable names used internally by WordPress
(e.g., "comment_status" instead of "mt_allow_comments"). I know this would
make it a little harder for existing apps to upgrade to the new API, but I
think it buys us a lot more flexibility in the future to evolve the wp.*
API namespace independent of the legacy APIs. Thoughts?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18433#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list