[wp-trac] [WordPress Trac] #59414: XML-RPC - add updateMedia endpoint

WordPress Trac noreply at wordpress.org
Wed Sep 20 19:33:26 UTC 2023


#59414: XML-RPC - add updateMedia endpoint
---------------------------+-----------------------------
 Reporter:  joedolson      |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  XML-RPC        |    Version:
 Severity:  normal         |   Keywords:  needs-patch
  Focuses:  accessibility  |
---------------------------+-----------------------------
 In #58582, @thomashorta reported on alt attributes missing from the XML
 RPC endpoints. Fetching that data was fixed in [56637], but adding an
 endpoint to update media that specifically handles media data like alt
 attributes requires a more substantial enhancement.

 From #58582:

 Updating MediaItems through the XML-RPC API is also done directly by the
 Posts API, more specifically through wp.editPost (codex), which also
 doesn't support an alt field. This makes sense, as this API is more
 generic, but at the same time, there are no specific updateMedia methods
 in the Media API.

 Suggestion for updating
 I'm not sure about this one, but I think a new method in the Media API
 would be needed (e.g.: wp.updateMediaItem) to properly manipulate a
 specific input struct and call the Post update functions internally.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59414>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list