[wp-trac] [WordPress Trac] #18433: Retrieve a list of posts via XML-RPC

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 29 13:46:47 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 nprasath002):

 I made a couple changes for the third patch

 1. Added validation for post statuses

 2. Added support for an array of post statuses. The default values are
    draft, publish, future, pending, private.
    To override this we must support array of post statuses.
    The new method supports
   draft=draft,auto-draft, future,pending, trash, inherit, publish, private
    this means we can get trashed posts and post revisions.

 3. I separated adding offset and number of posts. We can specify an offset
 without specifying
    number of posts. Is it better to add a default value say 50?

 4. fixed a small bug. Added post_id in individual post validation.

 WDYT?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18433#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list