Make WordPress Core

Opened 8 months ago

Last modified 3 months ago

#59414 new enhancement

XML-RPC - add updateMedia endpoint

Reported by: joedolson's profile joedolson Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: XML-RPC Keywords: needs-patch
Focuses: accessibility Cc:

Description

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.

Change History (4)

This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.


7 months ago

This ticket was mentioned in Slack in #accessibility by joedolson. View the logs.


3 months ago

#3 @joedolson
3 months ago

  • Milestone changed from Awaiting Review to Future Release

Given the mostly legacy status of XML RPC in WordPress, this doesn't seem like a high priority. However, if anybody find themselves needing this, I'd be happy to address it. Based on my working guesstimate of usage of XML RPC, however, it doesn't seem like something to focus on at this time.

#4 @joedolson
3 months ago

Given the mostly legacy status of XML RPC in WordPress, this doesn't seem like a high priority. However, if anybody find themselves needing this, I'd be happy to address it. Based on my working guesstimate of usage of XML RPC, however, it doesn't seem like something to focus on at this time.

Note: See TracTickets for help on using tickets.