WordPress.org

Make WordPress Core

Changeset 13203


Ignore:
Timestamp:
02/18/2010 10:43:52 PM (12 years ago)
Author:
nacin
Message:

Add Youtu.be short URLs and Smugmug to the default oEmbed providers. Props Viper007Bond, fixes #11556, fixes #12157

File:
1 edited

Legend:

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

    r13021 r13203  
    3939        $this->providers = apply_filters( 'oembed_providers', array(
    4040            '#http://(www\.)?youtube.com/watch.*#i'         => array( 'http://www.youtube.com/oembed',            true  ),
     41            'http://youtu.be/*'                             => array( 'http://www.youtube.com/oembed',            false ),
    4142            'http://blip.tv/file/*'                         => array( 'http://blip.tv/oembed/',                   false ),
    4243            '#http://(www\.)?vimeo\.com/.*#i'               => array( 'http://www.vimeo.com/api/oembed.{format}', true  ),
    4344            '#http://(www\.)?dailymotion\.com/.*#i'         => array( 'http://www.dailymotion.com/api/oembed',    true  ),
    4445            '#http://(www\.)?flickr\.com/.*#i'              => array( 'http://www.flickr.com/services/oembed/',   true  ),
     46            '#http://(.+)?smugmug\.com/.*#i'                => array( 'http://api.smugmug.com/services/oembed/',  true  ),
    4547            '#http://(www\.)?hulu\.com/watch/.*#i'          => array( 'http://www.hulu.com/api/oembed.{format}',  true  ),
    4648            '#http://(www\.)?viddler\.com/.*#i'             => array( 'http://lab.viddler.com/services/oembed/',  true  ),
     
    5153            '#http://(www\.)?scribd\.com/.*#i'              => array( 'http://www.scribd.com/services/oembed',    true  ),
    5254            'http://wordpress.tv/*'                         => array( 'http://wordpress.tv/oembed/',              false ),
    53             '#http://(answers|surveys)\.polldaddy.com/.*#i' => array( 'http://polldaddy.com/oembed/',             true ),
     55            '#http://(answers|surveys)\.polldaddy.com/.*#i' => array( 'http://polldaddy.com/oembed/',             true  ),
    5456        ) );
    5557
Note: See TracChangeset for help on using the changeset viewer.