Ticket #23149: 23149.diff
File 23149.diff, 1.3 KB (added by , 12 years ago) |
---|
-
wp-includes/class-oembed.php
30 30 // The WP_Embed class disables discovery for non-unfiltered_html users, so only providers in this array will be used for them. 31 31 // Add to this list using the wp_oembed_add_provider() function (see its PHPDoc for details). 32 32 $this->providers = apply_filters( 'oembed_providers', array( 33 '#https?://(www\.)?youtube.com/watch.*#i' => array( 'http://www.youtube.com/oembed', true ), 33 '#http://(www\.)?youtube.com/watch.*#i' => array( 'http://www.youtube.com/oembed', true ), 34 '#https://(www\.)?youtube.com/watch.*#i' => array( 'http://www.youtube.com/oembed?scheme=https', true ), 34 35 'http://youtu.be/*' => array( 'http://www.youtube.com/oembed', false ), 35 36 'http://blip.tv/*' => array( 'http://blip.tv/oembed/', false ), 36 37 '#https?://(www\.)?vimeo\.com/.*#i' => array( 'http://vimeo.com/api/oembed.{format}', true ),