Commit Graph

88 Commits

Author SHA1 Message Date
John Blackbourn
0303ea0272 Add support for secure wordpress.tv embeds (thanks stephdau). See #28507.
Built from https://develop.svn.wordpress.org/trunk@29110


git-svn-id: http://core.svn.wordpress.org/trunk@28896 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-11 23:01:15 +00:00
Drew Jaynes
b8750d5bb6 Add phpDoc blocks for two WP_oEmbed methods added in [28846].
Fixes #28284.

Built from https://develop.svn.wordpress.org/trunk@29012


git-svn-id: http://core.svn.wordpress.org/trunk@28800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-07 06:34:14 +00:00
Drew Jaynes
41b7269f16 Remove duplicate of the 'oembed_providers' filter accidentally introduced in [28949].
Move annoted table of oEmbed providers into the existing filter docs.

See #28507.
Fixes #28372. 

Built from https://develop.svn.wordpress.org/trunk@28950


git-svn-id: http://core.svn.wordpress.org/trunk@28747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-02 00:34:15 +00:00
Drew Jaynes
e618b986bf Introduce an annotated list of oEmbed providers, their flavors, whether they support SSL, and when they were added to the oembed_providers filter docs.
See #28507.
Fixes #28372.

Built from https://develop.svn.wordpress.org/trunk@28949


git-svn-id: http://core.svn.wordpress.org/trunk@28746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-02 00:19:15 +00:00
Sergey Biryukov
f799048057 Pass $url parameter to wp_embed_defaults() and 'embed_defaults' filter.
props wpsmith, sabreuse, jacobdubail.
fixes #20151.
Built from https://develop.svn.wordpress.org/trunk@28923


git-svn-id: http://core.svn.wordpress.org/trunk@28722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-30 11:16:15 +00:00
Scott Taylor
2efb8f8507 When wp_oembed_add_provider() or wp_oembed_remove_provider() is called before the plugins_loaded hook has, store the values statically on the WP_oEmbed object and add them just-in-time when the object is instantiated.
This ensures that all plugins have an accurate provider list when `apply_filters( 'oembed_providers', $providers )` is called. 

Props kovshenin.
Fixes #28284.

Built from https://develop.svn.wordpress.org/trunk@28846


git-svn-id: http://core.svn.wordpress.org/trunk@28650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-26 02:30:15 +00:00
John Blackbourn
c9ba310e25 Switch to SSL for the Flickr and Slideshare oEmbed endpoints. Add support for SSL embeds on flic.kr. See #28507.
Built from https://develop.svn.wordpress.org/trunk@28834


git-svn-id: http://core.svn.wordpress.org/trunk@28638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-25 23:36:14 +00:00
Sergey Biryukov
781750550f Merge two Animoto oEmbed patterns.
props kovshenin.
see #28265.
Built from https://develop.svn.wordpress.org/trunk@28822


git-svn-id: http://core.svn.wordpress.org/trunk@28626 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-24 15:56:14 +00:00
Scott Taylor
04933ab8cf Add a filter/docs: 'oembed_remote_get_args' to WP_oEmbed->discover() and ->_fetch_with_format().
Props leewillis77, DrewAPicture.
Fixes #23442.

Built from https://develop.svn.wordpress.org/trunk@28815


git-svn-id: http://core.svn.wordpress.org/trunk@28622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-24 00:28:15 +00:00
Scott Taylor
011f2aad7e Add Animoto to the list of oEmbed providers. Example video: http://animoto.com/play/MlRRgXHhoT8gOZyHanM6TA.
Props lritter.
Fixes #28265.


Built from https://develop.svn.wordpress.org/trunk@28790


git-svn-id: http://core.svn.wordpress.org/trunk@28603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-20 18:57:15 +00:00
John Blackbourn
2d23c8fea7 A little more abstraction in the WP_oEmbed class. Fixes #24381.
Built from https://develop.svn.wordpress.org/trunk@28728


git-svn-id: http://core.svn.wordpress.org/trunk@28542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-10 18:14:15 +00:00
Sergey Biryukov
324565bb17 Add oEmbed support for TED talks.
props pdclark.
fixes #28285.
Built from https://develop.svn.wordpress.org/trunk@28651


git-svn-id: http://core.svn.wordpress.org/trunk@28469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-06-02 00:46:14 +00:00
Sergey Biryukov
13cbcdd1ad Fix SlideShare oEmbed regex.
props kovshenin.
fixes #28380.
Built from https://develop.svn.wordpress.org/trunk@28597


git-svn-id: http://core.svn.wordpress.org/trunk@28422 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-28 13:32:17 +00:00
Scott Taylor
7e74b8909e RIP Viddler oEmbed support.
More: https://gigaom.com/2014/02/07/viddler-gets-ready-to-delete-personal-videos/

See #28379.


Built from https://develop.svn.wordpress.org/trunk@28596


git-svn-id: http://core.svn.wordpress.org/trunk@28421 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-27 22:00:14 +00:00
Scott Taylor
c5790a80fc Update the Scribd oEmbed pattern to more actually represent which endpoints from the site are discoverable.
See #28379.

Built from https://develop.svn.wordpress.org/trunk@28595


git-svn-id: http://core.svn.wordpress.org/trunk@28420 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-27 21:55:14 +00:00
Scott Taylor
cb68638968 For YouTube playlist oEmbed, we need keep BC for wp_oembed_remove_provider() by not changing the existing YouTube endpoint keys. So, rather than merging the rules, the playlist endpoints should be on their own line.
Props kovshenin.

See #28125, [28552].

Built from https://develop.svn.wordpress.org/trunk@28593


git-svn-id: http://core.svn.wordpress.org/trunk@28418 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-27 18:43:14 +00:00
Scott Taylor
f3e71ae45f Add oEmbed support for Mixcloud.
Props Jayjdk.
Fixes #27169.


Built from https://develop.svn.wordpress.org/trunk@28578


git-svn-id: http://core.svn.wordpress.org/trunk@28403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-26 23:09:14 +00:00
John Blackbourn
03410a4067 Add CollegeHumor.com oEmbed support. Fixes #24497. Props johnzanussi.
Built from https://develop.svn.wordpress.org/trunk@28557


git-svn-id: http://core.svn.wordpress.org/trunk@28383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-22 23:47:15 +00:00
Scott Taylor
10e1d66318 Viddler has had a new oEmbed endpoint for at least 10 months. Let us update to it.
Props garhdez.
Fixes #24296.

Built from https://develop.svn.wordpress.org/trunk@28556


git-svn-id: http://core.svn.wordpress.org/trunk@28382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-22 23:17:15 +00:00
Scott Taylor
fe044c84f7 Support Polldaddy's short URL format as a whitelisted oEmbed provider.
Props donncha.
Fixes #28283.


Built from https://develop.svn.wordpress.org/trunk@28555


git-svn-id: http://core.svn.wordpress.org/trunk@28381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-22 23:13:14 +00:00
Scott Taylor
ee43d258c2 Add Issuu to list of whitelisted oEmbed providers.
Props issuu.
Fixes #28312.


Built from https://develop.svn.wordpress.org/trunk@28554


git-svn-id: http://core.svn.wordpress.org/trunk@28380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-22 21:50:14 +00:00
Scott Taylor
e0a57ed96a Support oEmbed matching for YouTube playlist URLs.
Fixes #28125.

Built from https://develop.svn.wordpress.org/trunk@28552


git-svn-id: http://core.svn.wordpress.org/trunk@28378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-22 21:12:15 +00:00
Scott Taylor
27e8d17be2 Add access modifier to methods/members in WP_oEmbed. Adds a magic __call() method for BC.
See #27881, #22234.

Built from https://develop.svn.wordpress.org/trunk@28507


git-svn-id: http://core.svn.wordpress.org/trunk@28333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-19 05:37:13 +00:00
Andrew Nacin
a177d8bf18 Don't pass variables by reference.
props markjaquith.
fixes #27656.

Built from https://develop.svn.wordpress.org/trunk@27957


git-svn-id: http://core.svn.wordpress.org/trunk@27787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-04-05 18:17:14 +00:00
John Blackbourn
74bfbfaec2 Remove Qik from the oEmbed provider list as it's shutting down. Fixes #27302. Props JustinSainton.
Built from https://develop.svn.wordpress.org/trunk@27526


git-svn-id: http://core.svn.wordpress.org/trunk@27369 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-13 21:28:14 +00:00
Andrew Nacin
9e3201f130 Allow any vimeo.com subdomain for embeds.
props danielbachhuber.
fixes #24170.

Built from https://develop.svn.wordpress.org/trunk@27225


git-svn-id: http://core.svn.wordpress.org/trunk@27082 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-21 19:32:13 +00:00
Andrew Nacin
d152663319 Add meetup.com oEmbed support. see #23171.
Built from https://develop.svn.wordpress.org/trunk@27133


git-svn-id: http://core.svn.wordpress.org/trunk@27000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-08 01:14:11 +00:00
Andrew Nacin
784d3071c9 Add imgur to the list of oEmbed providers.
props bradparbs.
fixes #21632.

Built from https://develop.svn.wordpress.org/trunk@27113


git-svn-id: http://core.svn.wordpress.org/trunk@26980 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-06 23:12:12 +00:00
Andrew Nacin
f73508e9bc Ensure that SSL YouTube URLs receive SSL embeds.
props adamsilverstein, Otto42, JayCC.
fixes #23149.

Built from https://develop.svn.wordpress.org/trunk@26978


git-svn-id: http://core.svn.wordpress.org/trunk@26855 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-17 19:46:11 +00:00
Andrew Nacin
7881b4eca8 Realign the oEmbed providers. see #26844.
Built from https://develop.svn.wordpress.org/trunk@26968


git-svn-id: http://core.svn.wordpress.org/trunk@26847 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-17 03:29:11 +00:00
Andrew Nacin
7e18ca2dec Switch Twitter oEmbed to SSL due to a Twitter API change. Ah, the open web.
props yurivictor, cojennin.
see #26844.

Built from https://develop.svn.wordpress.org/trunk@26967


git-svn-id: http://core.svn.wordpress.org/trunk@26846 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-01-17 03:26:10 +00:00
Drew Jaynes
0dd024dd70 Inline documentation for hooks in wp-includes/class-oembed.php.
Props swissspidy, kpdesign.
Fixes #25527.

Built from https://develop.svn.wordpress.org/trunk@25723


git-svn-id: http://core.svn.wordpress.org/trunk@25636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-07 23:57:10 +00:00
Andrew Nacin
21a1fe8d4b Use wp_safe_remote_request() and friends instead of reject_unsafe_urls = true.
fixes #24646.



git-svn-id: http://core.svn.wordpress.org/trunk@24917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-31 06:52:13 +00:00
Michael Adams
c30925d20e Improved XML handling for oEmbed.
git-svn-id: http://core.svn.wordpress.org/trunk@24902 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-07-30 21:57:27 +00:00
Andrew Nacin
96ee267343 Better validation of the URL used in core HTTP requests.
git-svn-id: http://core.svn.wordpress.org/trunk@24480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-06-21 06:07:47 +00:00
Andrew Nacin
274d09b342 Better sanity checks in oEmbed XML handling. see [23158].
git-svn-id: http://core.svn.wordpress.org/trunk@24470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-06-21 03:29:13 +00:00
Ryan Boren
1eff4a8a62 Add the Daily Motion shortlink, dai.ly, to the default oembed provider list.
Props georgestephanis
fixes #24353


git-svn-id: http://core.svn.wordpress.org/trunk@24302 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-05-20 12:08:07 +00:00
Ryan Boren
004e66320a Add the flickr shortlink, flic.kr, to the oEmbed default providers list.
Props Ipstenu
fixes #23052


git-svn-id: http://core.svn.wordpress.org/trunk@24248 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-05-14 13:47:37 +00:00
Andrew Nacin
1a6e126017 Escape periods in oEmbed regex. props rovo89. fixes #24242.
git-svn-id: http://core.svn.wordpress.org/trunk@24168 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-05-03 17:37:05 +00:00
Andrew Nacin
762a0e1d90 Support Spotify web player links. see #24242.
git-svn-id: http://core.svn.wordpress.org/trunk@24165 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-05-03 00:21:20 +00:00
Andrew Nacin
c194462933 Add Spotify to the default oEmbed providers list. fixes #24242.
git-svn-id: http://core.svn.wordpress.org/trunk@24164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-05-02 23:55:07 +00:00
Ryan Boren
ac0e0c2112 Add Rdio to the default oembed providers list.
Props zekeweeks
fixes #24242


git-svn-id: http://core.svn.wordpress.org/trunk@24160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-05-02 22:04:23 +00:00
Andrew Nacin
3b9f156de7 Check for DOMDocument when parsing oEmbed XML responses.
git-svn-id: http://core.svn.wordpress.org/trunk@23160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-10 22:49:45 +00:00
Andrew Nacin
cca862707e Sanity checks in oEmbed XML handling.
git-svn-id: http://core.svn.wordpress.org/trunk@23158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-10 22:23:03 +00:00
Jon Cave
2e3745547e Add Instagram oEmbed support. Props bananastalktome. Fixes #21704.
git-svn-id: http://core.svn.wordpress.org/trunk@22351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-10-31 22:45:23 +00:00
Ryan Boren
77518e9c71 Objects no longer need to be explicitly passed by ref to call_user_func*() to be callable. Props wonderboymusic. fixes #21865
git-svn-id: http://core.svn.wordpress.org/trunk@22118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-10-04 20:00:16 +00:00
Andrew Nacin
ebb0bdbf9c Add soundcloud and slideshare to the oEmbed providers list. props bradparbs, ericwahlforss, wonderboymusic. fixes #15734, #21635.
git-svn-id: http://core.svn.wordpress.org/trunk@22003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-25 23:42:53 +00:00
Ryan Boren
635d243951 Handle https for all oembed providers. Props johnjamesjacoby, gluten. fixes #20102
git-svn-id: http://core.svn.wordpress.org/trunk@21915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-19 13:46:05 +00:00
Andrew Nacin
19d165059d Switch $args and $url for the oembed_fetch_url filter introduced in [21839]. A bit more logical, especially given the order of arguments passed to fetch(). see #16996.
git-svn-id: http://core.svn.wordpress.org/trunk@21840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-13 17:49:23 +00:00
Andrew Nacin
b2b571f4ce Introduce an oembed_fetch_url filter to be applied before sending the request.
props Otto42, r-a-y. fixes #16996.



git-svn-id: http://core.svn.wordpress.org/trunk@21839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-13 17:45:36 +00:00