WordPress.org

Make WordPress Core

Changeset 28552


Ignore:
Timestamp:
05/22/2014 09:11:31 PM (7 years ago)
Author:
wonderboymusic
Message:

Support oEmbed matching for YouTube playlist URLs.

Fixes #28125.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-oembed.php

    r28507 r28552  
    2828    public function __construct() {
    2929        $providers = array(
    30             '#http://(www\.)?youtube\.com/watch.*#i'              => array( 'http://www.youtube.com/oembed',                      true  ),
    31             '#https://(www\.)?youtube\.com/watch.*#i'             => array( 'http://www.youtube.com/oembed?scheme=https',         true  ),
     30            '#http://(www\.)?youtube\.com/(watch|playlist).*#i'   => array( 'http://www.youtube.com/oembed',                      true  ),
     31            '#https://(www\.)?youtube\.com/(watch|playlist).*#i'  => array( 'http://www.youtube.com/oembed?scheme=https',         true  ),
    3232            '#http://youtu\.be/.*#i'                              => array( 'http://www.youtube.com/oembed',                      true  ),
    3333            '#https://youtu\.be/.*#i'                             => array( 'http://www.youtube.com/oembed?scheme=https',         true  ),
Note: See TracChangeset for help on using the changeset viewer.