[wp-trac] [WordPress Trac] #5569: Manage post_status via XML-RPC

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 2 18:21:22 GMT 2008


#5569: Manage post_status via XML-RPC
-------------------------+--------------------------------------------------
 Reporter:  josephscott  |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.4      
Component:  XML-RPC      |     Version:  2.4      
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------
 The post_status field is now exposed via XML-RPC methods, we need a way to
 set it as well.  To that end this ticket addresses the following items:

  * Hide the 'future' post_status from posts, expose them as 'publish'
 instead
  * Look for a 'post_status' field in metaWeblog.newPost and
 metaWeblog.editPost and use it, overriding the publish argument
  * Add new wp.getPostStatusList and wp.getPageStatusList methods

 The future post_status is an internal status only, so to make sure that
 clients don't get confused by posts that have a status of 'future' by
 sending it as published.  This matches what a user would see for a future
 post in wp-admin.

 If we find a 'post_status' field in metaWeblog.newPost or
 metaWeblog.editPost then check that has a value of 'draft', 'private',
 'publish', 'pending' and if so then override the publish argument with the
 value in the 'post_status' field.  We do the same thing for pages, with
 the exception that 'pending' isn't a valid status for a page.

 Clients need a way to know what the valid statuses are for posts and
 pages, so wp.getPostStatusList and wp.getPageStatusList each return an
 array, with each item in the array being a valid post_status.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5569>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list