Make WordPress Core

Changeset 36951


Ignore:
Timestamp:
03/10/2016 07:48:15 PM (11 years ago)
Author:
johnbillion
Message:

Embeds: Add support for dai.ly embeds over HTTPS.

Fixes #36189

File:
1 edited

Legend:

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

    r36946 r36951  
    4444                        '#https?://(.+\.)?vimeo\.com/.*#i'                    => array( 'http://vimeo.com/api/oembed.{format}',                      true  ),
    4545                        '#https?://(www\.)?dailymotion\.com/.*#i'             => array( 'https://www.dailymotion.com/services/oembed',               true  ),
    46                         'http://dai.ly/*'                                     => array( 'https://www.dailymotion.com/services/oembed',               false ),
     46                        '#https?://dai.ly/.*#i'                               => array( 'https://www.dailymotion.com/services/oembed',               true ),
    4747                        '#https?://(www\.)?flickr\.com/.*#i'                  => array( 'https://www.flickr.com/services/oembed/',                   true  ),
    4848                        '#https?://flic\.kr/.*#i'                             => array( 'https://www.flickr.com/services/oembed/',                   true  ),
    … …  
    121121                 * | Slideshare   | slideshare.net       |  Yes  | 3.5.0     |
    122122                 * | SoundCloud   | soundcloud.com       |  Yes  | 3.5.0     |
    123                  * | Dailymotion  | dai.ly               |  No   | 3.6.0     |
     123                 * | Dailymotion  | dai.ly               |  Yes  | 3.6.0     |
    124124                 * | Flickr       | flic.kr              |  Yes  | 3.6.0     |
    125125                 * | Spotify      | spotify.com          |  Yes  | 3.6.0     |
Note: See TracChangeset for help on using the changeset viewer.