Make WordPress Core


Ignore:
Timestamp:
10/13/2009 10:36:24 PM (15 years ago)
Author:
ryan
Message:

Use oEmbed for youtube. Props Viper007Bond. see #10337

File:
1 edited

Legend:

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

    r12023 r12027  
    3838        // so only providers in this array will be used for them.
    3939        $this->providers = apply_filters( 'oembed_providers', array(
     40            'http://*.youtube.com/watch*' => 'http://www.youtube.com/oembed',
     41            'http://youtube.com/watch*'   => 'http://www.youtube.com/oembed',
    4042            'http://blip.tv/file/*'       => 'http://blip.tv/oembed/',
    4143            'http://*.flickr.com/*'       => 'http://www.flickr.com/services/oembed/',
     44            'http://www.hulu.com/watch/*' => 'http://www.hulu.com/api/oembed.{format}',
    4245            'http://*.viddler.com/*'      => 'http://lab.viddler.com/services/oembed/',
    4346            'http://qik.com/*'            => 'http://qik.com/api/oembed.{format}',
    4447            'http://*.revision3.com/*'    => 'http://revision3.com/api/oembed/',
    45             'http://www.hulu.com/watch/*' => 'http://www.hulu.com/api/oembed.{format}',
    4648
    4749            // Vimeo uses the discovery <link>, so leave this commented to use it as a discovery test
Note: See TracChangeset for help on using the changeset viewer.