Make WordPress Core


Ignore:
Timestamp:
05/20/2013 12:08:07 PM (11 years ago)
Author:
ryan
Message:

Add the Daily Motion shortlink, dai.ly, to the default oembed provider list.

Props georgestephanis
fixes #24353

File:
1 edited

Legend:

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

    r24248 r24302  
    3636            '#https?://(www\.)?vimeo\.com/.*#i'                  => array( 'http://vimeo.com/api/oembed.{format}',              true  ),
    3737            '#https?://(www\.)?dailymotion\.com/.*#i'            => array( 'http://www.dailymotion.com/services/oembed',        true  ),
     38            'http://dai.ly/*'                                    => array( 'http://www.dailymotion.com/services/oembed',        false ),
    3839            '#https?://(www\.)?flickr\.com/.*#i'                 => array( 'http://www.flickr.com/services/oembed/',            true  ),
    39             'http://flic.kr/*'                                   => array( 'http://www.flickr.com/services/oembed/',            false ),           
     40            'http://flic.kr/*'                                   => array( 'http://www.flickr.com/services/oembed/',            false ),
    4041            '#https?://(.+\.)?smugmug\.com/.*#i'                 => array( 'http://api.smugmug.com/services/oembed/',           true  ),
    4142            '#https?://(www\.)?hulu\.com/watch/.*#i'             => array( 'http://www.hulu.com/api/oembed.{format}',           true  ),
Note: See TracChangeset for help on using the changeset viewer.