[wp-trac] [WordPress Trac] #15098: Can't add post with featured image using only XML-RPC

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 12 06:25:24 UTC 2010


#15098: Can't add post with featured image using only XML-RPC
-------------------------+--------------------------------------------------
 Reporter:  rvavruch     |       Owner:                 
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  XML-RPC      |     Version:                 
 Severity:  normal       |    Keywords:                 
-------------------------+--------------------------------------------------
 AFAIK it is not possible to add a new post with a featured image using
 only XML-RPC. This is because the way to add a featured image with XML-RPC
 requires the wp_posts.id of the image to be used.

 I have attached a patch based on trunk rev. 15775 which returns that id
 when performing a metaWeblog.newMediaObject. This id can then be used in
 the custom_fields of a metaWeblog.newPost to set the featured image (or
 _thumbnail_id).

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


More information about the wp-trac mailing list