Ticket #16739: add_putpat_oembed.diff

File add_putpat_oembed.diff, 980 bytes (added by bodum, 2 years ago)

Add putpat to the oembed whitelist

Line 
1Index: wp-includes/class-oembed.php
2===================================================================
3--- wp-includes/class-oembed.php        (revision 17497)
4+++ wp-includes/class-oembed.php        (working copy)
5@@ -54,6 +54,8 @@
6                        'http://wordpress.tv/*'                         => array( 'http://wordpress.tv/oembed/',              false ),
7                        '#http://(answers|surveys)\.polldaddy.com/.*#i' => array( 'http://polldaddy.com/oembed/',             true  ),
8                        '#http://(www\.)?funnyordie\.com/videos/.*#i'   => array( 'http://www.funnyordie.com/oembed',         true  ),
9+                       '#http://(www\.)?putpat\.tv/video/.*#i'         => array( 'http://www.putpat.tv/oembed',              true  ),
10+                       'http://putp.at/*'                              => array( 'http://www.putpat.tv/oembed',              false )
11                ) );
12 
13                // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().
14@@ -299,4 +301,4 @@
15        return $wp_oembed;
16 }
17 
18-?>
19\ No newline at end of file
20+?>