Make WordPress Core


Ignore:
Timestamp:
07/04/2020 04:13:17 AM (4 years ago)
Author:
TimothyBlynJacobs
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php

    r48242 r48291  
    101101            '/wp/v2/media/(?P<id>[\\d]+)',
    102102            '/wp/v2/media/(?P<id>[\\d]+)/post-process',
     103            '/wp/v2/media/(?P<id>[\\d]+)/edit',
    103104            '/wp/v2/blocks',
    104105            '/wp/v2/blocks/(?P<id>[\d]+)',
Note: See TracChangeset for help on using the changeset viewer.