[wp-trac] [WordPress Trac] #40450: Introduce REST API endpoint for proxying requests to external oEmbed providers

WordPress Trac noreply at wordpress.org
Wed Apr 19 21:21:14 UTC 2017


#40450: Introduce REST API endpoint for proxying requests to external oEmbed
providers
----------------------------------------+-------------------------
 Reporter:  westonruter                 |       Owner:  swissspidy
     Type:  enhancement                 |      Status:  reviewing
 Priority:  normal                      |   Milestone:  4.8
Component:  Embeds                      |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  rest-api
----------------------------------------+-------------------------

Comment (by timmydcrawford):

 > Once this is implemented, the use of the embed endpoint can potentially
 replace the parse-embed request, at least when there is no post_ID for
 context.

 @westonruter do we have an idea of what might be needed to make this new
 endpoint work in the context of a particular post?  It appears the current
 logic in the associated admin-ajax function is to verify the user has
 access to edit the given post : https://github.com/xwp/wordpress-
 develop/blob/master/src/wp-admin/includes/ajax-actions.php#L2945-L2951

 Would it be worth exploring supporting a {{{post_ID}}} option for the
 endpoint too?  I think it would be great to ship this new endpoint with
 all the needed features to replace {{{parse_embed}}} usage from the get-
 go.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40450#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list