Commit Graph

46 Commits

Author SHA1 Message Date
Andrew Nacin f2b89e27be Check for DOMDocument when parsing oEmbed XML responses.
git-svn-id: https://develop.svn.wordpress.org/trunk@23160 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 22:49:45 +00:00
Andrew Nacin 301284fd7f Sanity checks in oEmbed XML handling.
git-svn-id: https://develop.svn.wordpress.org/trunk@23158 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 22:23:03 +00:00
Jon Cave e62a2b0327 Add Instagram oEmbed support. Props bananastalktome. Fixes #21704.
git-svn-id: https://develop.svn.wordpress.org/trunk@22351 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-31 22:45:23 +00:00
Ryan Boren 7ba5099795 Objects no longer need to be explicitly passed by ref to call_user_func*() to be callable. Props wonderboymusic. fixes #21865
git-svn-id: https://develop.svn.wordpress.org/trunk@22118 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-04 20:00:16 +00:00
Andrew Nacin ac3acca992 Add soundcloud and slideshare to the oEmbed providers list. props bradparbs, ericwahlforss, wonderboymusic. fixes #15734, #21635.
git-svn-id: https://develop.svn.wordpress.org/trunk@22003 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-25 23:42:53 +00:00
Ryan Boren 2851d75027 Handle https for all oembed providers. Props johnjamesjacoby, gluten. fixes #20102
git-svn-id: https://develop.svn.wordpress.org/trunk@21915 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 13:46:05 +00:00
Andrew Nacin 0607d6b562 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: https://develop.svn.wordpress.org/trunk@21840 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-13 17:49:23 +00:00
Andrew Nacin c2df87ff7d Introduce an oembed_fetch_url filter to be applied before sending the request.
props Otto42, r-a-y. fixes #16996.



git-svn-id: https://develop.svn.wordpress.org/trunk@21839 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-13 17:45:36 +00:00
Ryan Boren 879cb8231b Remove unnecessary return by refs. Props wonderboymusic. fixes #21839
git-svn-id: https://develop.svn.wordpress.org/trunk@21792 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-10 17:00:11 +00:00
Andrew Nacin 909cbd75b8 Fix oEmbed when the provider only supports XML responses.
[20539] removed string casts that would have taken place on SimpleXMLElement
objects, which implement toString. Instead, convert the SimpleXMLElement object
to a stdClass object before we leave _parse_xml(), for consistency with the
simple object returned from _parse_json().

see #20246.
for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@21701 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 21:42:24 +00:00
Mark Jaquith 425e7a9b49 ALIGN *ALL* THE THINGS! see #20324
git-svn-id: https://develop.svn.wordpress.org/trunk@20874 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 07:14:10 +00:00
Andrew Nacin f1e5a8fce0 Update dailymotion's oEmbed endpoint. props arena. fixes #20324.
git-svn-id: https://develop.svn.wordpress.org/trunk@20873 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-24 07:07:55 +00:00
Andrew Nacin 7accb38740 Add sanity checks to WP_oEmbed::data2html() to ensure we are working with scalar values. Always use the filter. props mdawaffe, fixes #20322.
git-svn-id: https://develop.svn.wordpress.org/trunk@20539 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-19 19:46:34 +00:00
Jon Cave 65bb406853 We use colon as the case separator.
git-svn-id: https://develop.svn.wordpress.org/trunk@20235 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-21 15:04:52 +00:00
Andrew Nacin e1b429fd67 Add Twitter.com as an oEmbed provider. props Otto42. see #19626.
git-svn-id: https://develop.svn.wordpress.org/trunk@19721 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-09 17:43:48 +00:00
Ryan Boren 2b186b0c45 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +00:00
Jon Cave 7942318230 Ensure auto-embed only matches "smugmug.com" and its subdomains. Fixes #19076.
git-svn-id: https://develop.svn.wordpress.org/trunk@19079 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-28 20:05:43 +00:00
Jon Cave abada6e11d Fix polldaddy oEmbed regular expression to work with new style URLs. Props r-a-y, azaozz. Fixes #17106.
git-svn-id: https://develop.svn.wordpress.org/trunk@19076 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-28 19:42:57 +00:00
Ryan Boren 8d945cd8a0 Update vimeo oembed api url. Props l3rady, justindgivens. fixes #18928
git-svn-id: https://develop.svn.wordpress.org/trunk@18973 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-14 17:56:48 +00:00
Jon Cave 205aa5ba5c Fix typos in documentation (wp-includes/[a-h]). See #18560.
git-svn-id: https://develop.svn.wordpress.org/trunk@18633 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-03 16:02:41 +00:00
Ryan Boren 85c07485bf Cast widget and height to int in WP_oEmbed:fetch() so we don't have to rely on providers.
git-svn-id: https://develop.svn.wordpress.org/trunk@17995 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-22 23:20:48 +00:00
Andrew Nacin 5fe94e6993 Update the blip.tv regex. props blepoxp, fixes #17495.
git-svn-id: https://develop.svn.wordpress.org/trunk@17978 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-20 15:52:39 +00:00
Ryan Boren 4bf74e960d Remove PHP4 constructor. Props ocean90. see #16768
git-svn-id: https://develop.svn.wordpress.org/trunk@17654 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-18 21:45:20 +00:00
Andrew Nacin 892760ad7a When inserting an image via oEmbed, wrap it in a link. props MarkJaquith, fixes #14945.
git-svn-id: https://develop.svn.wordpress.org/trunk@16444 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 02:17:13 +00:00
Mark Jaquith 4689663e64 Revert accidental inclusion in last commit... [15740]
git-svn-id: https://develop.svn.wordpress.org/trunk@15741 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 08:06:31 +00:00
Mark Jaquith dfa0e20a64 Fix an English fail.
git-svn-id: https://develop.svn.wordpress.org/trunk@15740 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 08:04:15 +00:00
Andrew Nacin 4bcefca0ca Fix order of params to strpos. props ampt, fixes #12115.
git-svn-id: https://develop.svn.wordpress.org/trunk@14976 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 04:14:35 +00:00
Ryan Boren d783952469 Strip trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@14404 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 20:26:11 +00:00
Andrew Nacin 88bcfe2ec4 Simply search for newlines to strip instead of checking the oEmbed provider. fixes #12115.
git-svn-id: https://develop.svn.wordpress.org/trunk@14249 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-27 05:21:39 +00:00
Andrew Nacin 08a6301257 Strip new lines from Viddler embeds, as we do for Scribd embeds. Avoids conflicts with wpautop. props Viper007Bond. see #12115.
git-svn-id: https://develop.svn.wordpress.org/trunk@14109 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 14:15:16 +00:00
Andrew Nacin f3b49e98b6 Request XML from an oEmbed provider if the provider returns '501 Not Implemented' for JSON. props nbachiyski, fixes #11964.
git-svn-id: https://develop.svn.wordpress.org/trunk@13996 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-04 12:30:22 +00:00
Andrew Nacin 05a37728b1 Use esc_url() instead of clean_url(). See #12309
git-svn-id: https://develop.svn.wordpress.org/trunk@13297 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-22 18:15:10 +00:00
Dion Hulse f68b5c6093 Add FunnyOrDie.com oEmbed support. Props Viper007Bond. Fixes #11899.
git-svn-id: https://develop.svn.wordpress.org/trunk@13275 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-21 02:17:39 +00:00
Andrew Nacin 96c01c0018 Add Youtu.be short URLs and Smugmug to the default oEmbed providers. Props Viper007Bond, fixes #11556, fixes #12157
git-svn-id: https://develop.svn.wordpress.org/trunk@13203 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-18 22:43:52 +00:00
Ryan Boren 62e8bf4cea Use oEmbed for PollDaddy. Props Viper007Bond. fixes #12174
git-svn-id: https://develop.svn.wordpress.org/trunk@13021 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-08 16:15:13 +00:00
Ryan Boren 0685f827bf Use oEmbed for dailymotion. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12325 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-06 17:33:53 +00:00
Ryan Boren 8a667fd4a9 Add wordpress.tv to oEmbed provider whitelist. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12181 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-12 22:05:05 +00:00
Ryan Boren 87a8ae176a Add a bunch of new filters. Use one of them to remove new lines from Scribd embeds. Invalid oEmbed post meta cache without using JS. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12153 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-06 14:22:23 +00:00
Ryan Boren bf15548a6a Fix regex. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12138 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-02 20:50:49 +00:00
Ryan Boren b552dbdd9b Switch oEmbed option to control discovery. Tweak whitelist and settings page. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12136 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-02 14:41:35 +00:00
Ryan Boren b4f5f60664 Add scribd to oembed provider whitelist. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12131 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-30 20:03:41 +00:00
Ryan Boren ad6346e33d Fix revision3 scheme. Add photobucket oembed. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12123 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-28 20:13:09 +00:00
Ryan Boren 8c4c0f29fe Allow non-admins to use Vimeo and allow regex in oEmbed URL formats. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12096 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-23 19:33:24 +00:00
Ryan Boren a4789b3cc1 Associate subdirector of whitespace trims trailing whites with pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@12042 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-15 20:26:21 +00:00
Ryan Boren 05458bb414 Use oEmbed for youtube. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12027 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-13 22:36:24 +00:00
Ryan Boren e71f15a979 Embeds. Props Viper007Bond. see #10337
git-svn-id: https://develop.svn.wordpress.org/trunk@12023 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-13 17:04:22 +00:00