From 4db068e862c0943b85e31a7b12bda9242b9d71ee Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 10 Mar 2016 19:48:15 +0000 Subject: [PATCH] Embeds: Add support for `dai.ly` embeds over HTTPS. Fixes #36189 git-svn-id: https://develop.svn.wordpress.org/trunk@36951 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-oembed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-oembed.php b/src/wp-includes/class-oembed.php index 127c879e0c..2574304891 100644 --- a/src/wp-includes/class-oembed.php +++ b/src/wp-includes/class-oembed.php @@ -43,7 +43,7 @@ class WP_oEmbed { '#https://youtu\.be/.*#i' => array( 'http://www.youtube.com/oembed?scheme=https', true ), '#https?://(.+\.)?vimeo\.com/.*#i' => array( 'http://vimeo.com/api/oembed.{format}', true ), '#https?://(www\.)?dailymotion\.com/.*#i' => array( 'https://www.dailymotion.com/services/oembed', true ), - 'http://dai.ly/*' => array( 'https://www.dailymotion.com/services/oembed', false ), + '#https?://dai.ly/.*#i' => array( 'https://www.dailymotion.com/services/oembed', true ), '#https?://(www\.)?flickr\.com/.*#i' => array( 'https://www.flickr.com/services/oembed/', true ), '#https?://flic\.kr/.*#i' => array( 'https://www.flickr.com/services/oembed/', true ), '#https?://(.+\.)?smugmug\.com/.*#i' => array( 'http://api.smugmug.com/services/oembed/', true ), @@ -120,7 +120,7 @@ class WP_oEmbed { * | Instagram | instagr.am | Yes | 3.5.0 | * | Slideshare | slideshare.net | Yes | 3.5.0 | * | SoundCloud | soundcloud.com | Yes | 3.5.0 | - * | Dailymotion | dai.ly | No | 3.6.0 | + * | Dailymotion | dai.ly | Yes | 3.6.0 | * | Flickr | flic.kr | Yes | 3.6.0 | * | Spotify | spotify.com | Yes | 3.6.0 | * | Imgur | imgur.com | Yes | 3.9.0 |