Make WordPress Core

Opened 3 months ago

Last modified 6 weeks ago

#59414 new enhancement

XML-RPC - add updateMedia endpoint

Reported by: joedolson's profile joedolson Owned by:
Milestone: Awaiting Review 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 (1)

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


6 weeks ago

Note: See TracTickets for help on using tickets.