Weston Ruter
93637a5729
REST API: Ensure `maxwidth` and `maxheight` params are forwarded to oEmbed provider in proxy requests.
...
Also correct phpdoc return tag on `WP_oEmbed_Controller::get_proxy_item()` and remove dead code in oEmbed controller phpunit tests.
Amends [40628].
See #40450 .
Fixes #41299 .
Built from https://develop.svn.wordpress.org/trunk@41047
git-svn-id: http://core.svn.wordpress.org/trunk@40897 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-07-14 16:05:43 +00:00
Weston Ruter
2ca21c444e
REST API: Remove `_wpnonce` value from being used in hashed oEmbed proxy cache key.
...
Amends [40628].
Props r-a-y, westonruter.
See #40450 .
Fixes #41048 .
Built from https://develop.svn.wordpress.org/trunk@41035
git-svn-id: http://core.svn.wordpress.org/trunk@40885 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-07-12 22:51:40 +00:00
James Nylen
589c4b4b2d
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 .
Built from https://develop.svn.wordpress.org/trunk@40628
git-svn-id: http://core.svn.wordpress.org/trunk@40489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 18:18:46 +00:00
Drew Jaynes
ecf5a924fe
Docs: Add missing `@access` tags to methods in `WP_oEmbed_Controller`.
...
See [34903].
Props ramiy.
Fixes #36297 .
Built from https://develop.svn.wordpress.org/trunk@37568
git-svn-id: http://core.svn.wordpress.org/trunk@37536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-05-25 19:22:27 +00:00
Drew Jaynes
602b51a209
Docs: Standardize filter docs in core classes in wp-includes/* to use third-person singular verbs per the inline documentation standards for PHP.
...
See #36913 .
Built from https://develop.svn.wordpress.org/trunk@37492
git-svn-id: http://core.svn.wordpress.org/trunk@37460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-05-22 18:15:28 +00:00
Ryan McCue
aa71d8b7ff
oEmbed: Drop the trailing slash from the namespace.
...
Props swissspidy.
Fixes #34709 .
Built from https://develop.svn.wordpress.org/trunk@35656
git-svn-id: http://core.svn.wordpress.org/trunk@35620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-11-17 11:27:29 +00:00
Sergey Biryukov
64fdde928a
Embeds: Fix typo in `oembed_request_post_id` filter DocBlock.
...
Props swissspidy.
See #34523 .
Built from https://develop.svn.wordpress.org/trunk@35470
git-svn-id: http://core.svn.wordpress.org/trunk@35434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-31 15:38:25 +00:00
Gary Pendergast
8be4a22f82
Embeds: Who put this REST API infrastructure in my WordPress?
...
Well, while it's here, we probably should make use of it. The oEmbed endpoint now uses the REST API infrastructure, instead of providing its own.
Props swissspidy.
Fixes #34207 .
Built from https://develop.svn.wordpress.org/trunk@35436
git-svn-id: http://core.svn.wordpress.org/trunk@35400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-29 22:51:24 +00:00
Dominik Schilling
80116f2136
Embeds: Replace hardcoded error messages with `get_status_header_desc( $http_code )`.
...
Fixes #34275 .
Built from https://develop.svn.wordpress.org/trunk@35408
git-svn-id: http://core.svn.wordpress.org/trunk@35372 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-27 20:44:23 +00:00
Scott Taylor
1cd49e2d4d
oEmbed: if `SimpleXMLElement` does not exist, return an `HTTP Error 501 Not implemented` response.
...
Props swissspidy.
Fixes #34274 .
Built from https://develop.svn.wordpress.org/trunk@35354
git-svn-id: http://core.svn.wordpress.org/trunk@35320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-22 16:38:26 +00:00
Gary Pendergast
6a18efb313
Embeds: After [34903], remove an accidentally included text domain, and exclude a test failing in PHP 5.2.
...
Built from https://develop.svn.wordpress.org/trunk@34904
git-svn-id: http://core.svn.wordpress.org/trunk@34869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-07 11:01:25 +00:00
Gary Pendergast
83c3e3e00e
Embeds: Add oEmbed provider support.
...
For the past 6 years, WordPress has operated as an oEmbed consumer, allowing users to easily embed content from other sites. By adding oEmbed provider support, this allows any oEmbed consumer to embed posts from WordPress sites.
In addition to creating an oEmbed provider, WordPress' oEmbed consumer code has been enhanced to work with any site that provides oEmbed data (as long as it matches some strict security rules), and provides a preview from within the post editor.
For security, embeds appear within a sandboxed iframe - the iframe content is a template that can be styled or replaced entirely by the theme on the provider site.
Props swissspidy, pento, melchoyce, netweb, pfefferle, johnbillion, extendwings, davidbinda, danielbachhuber, SergeyBiryukov, afercia
Fixes #32522 .
Built from https://develop.svn.wordpress.org/trunk@34903
git-svn-id: http://core.svn.wordpress.org/trunk@34868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-10-07 10:36:25 +00:00