[wp-trac] [WordPress Trac] #15405: Extend Post Format support to the XML-RPC API

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 17 07:05:56 UTC 2010


#15405: Extend Post Format support to the XML-RPC API
----------------------------+-----------------------------------------------
 Reporter:  ericmann        |       Owner:  ericmann 
     Type:  task (blessed)  |      Status:  new      
 Priority:  normal          |   Milestone:  3.1      
Component:  XML-RPC         |     Version:  3.1      
 Severity:  normal          |    Keywords:  has-patch
----------------------------+-----------------------------------------------

Comment(by josephscott):

 I ran through a few tests with this new patch.

 The response from wp.getPostFormats has one odd piece:

 {{{

 Array
 (
     [0] => Default
     [aside] => Aside
     [chat] => Chat
     [gallery] => Gallery
     [link] => Link
     [image] => Image
     [quote] => Quote
     [status] => Status
     [video] => Video
 )
 }}}

 Seems like that first value should be something like '[default] =>
 Default' instead.

 For metaWeblog.getPost, if a post has the 'Default' format the
 wp_post_format value is empty in the response.  This might be related to
 the zero item above.  When the format was not default wp_post_format
 contained the related  string value for that format.

 The metaWeblog.newPost method also had problems with setting the
 wp_post_format to 'default'.  If I set it to 'aside' that worked fine, but
 setting it to 'default' ended up with some unknown format value.

 And metaWeblog.editPost has the same problem as .newPost.  Setting
 wp_post_format to 'aside' works fine, but setting it to 'default' left the
 format value of the post in some sort of limbo.

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


More information about the wp-trac mailing list