Ticket #21632: 21632.diff

File 21632.diff, 840 bytes (added by nacin, 8 months ago)
Line 
1Index: wp-includes/class-oembed.php
2===================================================================
3--- wp-includes/class-oembed.php        (revision 21822)
4+++ wp-includes/class-oembed.php        (working copy)
5@@ -48,6 +48,7 @@
6                        '#http://(.+\.)?polldaddy\.com/.*#i'                 => array( 'http://polldaddy.com/oembed/',                      true  ),
7                        '#http://(www\.)?funnyordie\.com/videos/.*#i'        => array( 'http://www.funnyordie.com/oembed',                  true  ),
8                        '#https?://(www\.)?twitter.com/.+?/status(es)?/.*#i' => array( 'http://api.twitter.com/1/statuses/oembed.{format}', true  ),
9+                       '#https?://(.+\.)?imgur\.com/.*#i'                   => array( 'http://api.imgur.com/oembed',                       true  ),
10                ) );
11 
12                // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().