Ticket #23149: 23149b.diff
File 23149b.diff, 1.6 KB (added by , 11 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 ), 34 'http://youtu.be/*' => array( 'http://www.youtube.com/oembed', false ), 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 ), 35 '#http://youtu\.be/.*#i' => array( 'http://www.youtube.com/oembed', true ), 36 '#https://youtu\.be/.*#i' => array( 'http://www.youtube.com/oembed?scheme=https', true ), 35 37 'http://blip.tv/*' => array( 'http://blip.tv/oembed/', false ), 36 38 '#https?://(www\.)?vimeo\.com/.*#i' => array( 'http://vimeo.com/api/oembed.{format}', true ),