[wp-trac] [WordPress Trac] #18433: Retrieve a list of posts via XML-RPC
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 26 22:28:16 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):
The new patch (3) implements a combined strategy as suggested by nacin. It
also adds 'post_status' as a filter option.
For fields, there are two types of values: conceptual groups and specific
fields. The conceptual groups are 'post', 'taxonomies', and
'custom_fields'. Since the latter two require extra queries, performance-
conscious callers can skip them by omitting them from 'fields'.
And to give extra control, you can specify specific individual fields
instead of/in addition to conceptual groups. So for daniloercoli's use-
case, he could use array('title', 'dateCreated', 'post_status').
I'm still torn about whether we should keep using backcompat-names (mt_*,
wp_*, camelCase) or cut the duplication and give them sensical names in
the context of modern WordPress. API consumers will already have to change
some code to use the new method, but I'm not sure if field name changes
would be too much of an additional burden.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18433#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list