mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
REST API: Introduce endpoint for editing images.
To facilitate inline image editing in Gutenberg, a new endpoint at wp/v2/media/<id>/edit has been introduced. This is functionally similar to the existing ajax image editor, however the REST API editor creates a new attachment record instead of updating an existing attachment. Fixes #44405. Props ajlende, ellatrix, spacedmonkey, azaozz. git-svn-id: https://develop.svn.wordpress.org/trunk@48291 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -100,6 +100,7 @@ class WP_Test_REST_Schema_Initialization extends WP_Test_REST_TestCase {
|
||||
'/wp/v2/media',
|
||||
'/wp/v2/media/(?P<id>[\\d]+)',
|
||||
'/wp/v2/media/(?P<id>[\\d]+)/post-process',
|
||||
'/wp/v2/media/(?P<id>[\\d]+)/edit',
|
||||
'/wp/v2/blocks',
|
||||
'/wp/v2/blocks/(?P<id>[\d]+)',
|
||||
'/wp/v2/blocks/(?P<id>[\d]+)/autosaves',
|
||||
|
||||
Reference in New Issue
Block a user