WordPress.org

Make WordPress Core

Ticket #21632: imguroembed.patch

File imguroembed.patch, 926 bytes (added by bradparbs, 20 months ago)

Adding imgur to the list of oEmbed providers

  • wp-includes/class-oembed.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    4848                        '#http://(.+\.)?polldaddy\.com/.*#i'                 => array( 'http://polldaddy.com/oembed/',                      true  ), 
    4949                        '#http://(www\.)?funnyordie\.com/videos/.*#i'        => array( 'http://www.funnyordie.com/oembed',                  true  ), 
    5050                        '#https?://(www\.)?twitter.com/.+?/status(es)?/.*#i' => array( 'http://api.twitter.com/1/statuses/oembed.{format}', true  ), 
     51                        '#https?://i.imgur.com.*#i'                          => array( 'http://api.imgur.com/oembed?url=/'                , true  ), 
    5152                ) ); 
    5253 
    5354                // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().