WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/11/2017 06:18:00 PM (4 years ago)
Author:
jnylen0
Message:

REST API: Add endpoint for proxying requests to external oEmbed providers.

This endpoint is a prerequisite for the media widgets work (see https://github.com/xwp/wp-core-media-widgets).

Also use the new endpoint in the media modal instead of the parse-embed AJAX action.

Props westonruter, timmydcrawford, swissspidy, jnylen0.
Fixes #40450.

File:
1 edited

Legend:

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

    r40341 r40628  
    4444            '/oembed/1.0',
    4545            '/oembed/1.0/embed',
     46            '/oembed/1.0/proxy',
    4647            '/wp/v2',
    4748            '/wp/v2/posts',
     
    165166                'route' => '/oembed/1.0/embed',
    166167                'name'  => 'oembeds',
     168            ),
     169            array(
     170                'route' => '/oembed/1.0/proxy',
     171                'name'  => 'oembedProxy',
    167172            ),
    168173            array(
Note: See TracChangeset for help on using the changeset viewer.