[wp-trac] [WordPress Trac] #20409: XML-RPC returns only full-size URL for featured image

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 20 02:06:28 UTC 2012


#20409: XML-RPC returns only full-size URL for featured image
-------------------------+------------------
 Reporter:  koke         |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.4
Component:  XML-RPC      |     Version:  3.4
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------

Comment (by maxcutler):

 Added a patch for my suggestion above. Now posts will have a
 `post_thumbnail` field which is an array containing the same values as
 would be gotten from `wp.getMediaItem` (or an empty array if there's no
 thumbnail).

 As suggested by nacin, the thumbnail URL will use 'post-thumbnail' size if
 the theme supports it, and fall back to 'thumbnail' otherwise.

 Also added basic tests in [UT693] to cover the existing
 `wp.getMediaItem`/`wp.getMediaLibrary behavior` so that we don't break
 that.

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


More information about the wp-trac mailing list