[wp-trac] [WordPress Trac] #18433: Retrieve a list of posts via XML-RPC
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 24 22:33:26 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 |
------------------------------------------+------------------------------
Changes (by maxcutler):
* cc: max@… (added)
Comment:
I've taken a pass at cleaning up the patch a little. There were a number
of typos that broke the code, but I believe it now works more-or-less as
advertised.
Someone with better knowledge about internal WP APIs needs to audit this
to make sure the logic makes sense. I left most of the logic as
nprasath002 had it, assuming that he had good reason for why he did
things.
Before this goes in, I think it would make sense to add additional filter
options; currently only 'post_type', 'numberposts' and 'offset' are
supported, but we should probably expand that to include most of the valid
filters to wp_get_recent_posts (category, orderby, post_status, include,
exclude, etc.).
There's also a lot of duplication between this and mw_getRecentPosts.
Duplication is generally a problem in this file, so I'm not sure if that
is intentional or a side-effect of incremental development.
Given the preference to not go with the approach in #16316, I think we
definitely need a wp.* method to allow filterable retrieval of posts.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18433#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list