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

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 3 07:01:49 UTC 2011


#15098: Can't add post with featured image using only XML-RPC
-------------------------+-----------------------------
 Reporter:  rvavruch     |       Owner:  rvavruch
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  Future Release
Component:  XML-RPC      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+-----------------------------
Changes (by cfinke):

 * cc: cfinke (added)


Comment:

 I'd really like to be able to support featured images in ScribeFire, so
 I've added a patch that exposes featured images in the following ways:

 * It includes the ID of each media object in the return value of
 getMediaLibrary.
 * It accepts a featured_image field as input to mw_newPost and
 mw_editPost; the value is a media object ID.
 * It returns as part of getRecentPosts a featured_image struct containing
 the ID and url values for the image.
 * It removes the featured image if featured_image is not set as part of
 the request to mw_editPost. (This might not be optimal, since the moment
 that this change goes live, any posts edited via the API will lose their
 featured images unless the clients released a pre-emptive update to
 support this API change.)

 This should be enough for clients to get/set/remove featured images; if
 you think it would be better to pass around URLs only, I can update the
 patch to reflect that.

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


More information about the wp-trac mailing list