Make WordPress Core

Ticket #15734: 15734.patch

File 15734.patch, 797 bytes (added by ericwahlforss, 14 years ago)

update oembed class to support soundcloud

Line 
1diff -crB wp-includes/class-oembed.php wp-includes-new/class-oembed.php
2*** wp-includes/class-oembed.php        Thu May 27 05:14:36 2010
3--- wp-includes-new/class-oembed.php    Wed Dec  8 18:33:34 2010
4***************
5*** 54,59 ****
6--- 54,60 ----
7                        'http://wordpress.tv/*'                         => array( 'http://wordpress.tv/oembed/',              false ),
8                        '#http://(answers|surveys)\.polldaddy.com/.*#i' => array( 'http://polldaddy.com/oembed/',             true  ),
9                        '#http://(www\.)?funnyordie\.com/videos/.*#i'   => array( 'http://www.funnyordie.com/oembed',         true  ),
10+                       'http://soundcloud.com/*'                       => array( 'http://soundcloud.com/oembed', false ),
11                ) );
12 
13                // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().