mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 12:35:03 +00:00
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
This commit is contained in:
parent
fcd6920bb8
commit
e0a57ed96a
@ -27,8 +27,8 @@ class WP_oEmbed {
|
|||||||
*/
|
*/
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$providers = array(
|
$providers = array(
|
||||||
'#http://(www\.)?youtube\.com/watch.*#i' => array( 'http://www.youtube.com/oembed', true ),
|
'#http://(www\.)?youtube\.com/(watch|playlist).*#i' => array( 'http://www.youtube.com/oembed', true ),
|
||||||
'#https://(www\.)?youtube\.com/watch.*#i' => array( 'http://www.youtube.com/oembed?scheme=https', true ),
|
'#https://(www\.)?youtube\.com/(watch|playlist).*#i' => array( 'http://www.youtube.com/oembed?scheme=https', true ),
|
||||||
'#http://youtu\.be/.*#i' => array( 'http://www.youtube.com/oembed', true ),
|
'#http://youtu\.be/.*#i' => array( 'http://www.youtube.com/oembed', true ),
|
||||||
'#https://youtu\.be/.*#i' => array( 'http://www.youtube.com/oembed?scheme=https', true ),
|
'#https://youtu\.be/.*#i' => array( 'http://www.youtube.com/oembed?scheme=https', true ),
|
||||||
'http://blip.tv/*' => array( 'http://blip.tv/oembed/', false ),
|
'http://blip.tv/*' => array( 'http://blip.tv/oembed/', false ),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user