WordPress.org

Make WordPress Core

Ticket #16739: add_putpat_oembed.diff

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

Add putpat to the oembed whitelist

  • wp-includes/class-oembed.php

     
    5454                        'http://wordpress.tv/*'                         => array( 'http://wordpress.tv/oembed/',              false ),
    5555                        '#http://(answers|surveys)\.polldaddy.com/.*#i' => array( 'http://polldaddy.com/oembed/',             true  ),
    5656                        '#http://(www\.)?funnyordie\.com/videos/.*#i'   => array( 'http://www.funnyordie.com/oembed',         true  ),
     57                        '#http://(www\.)?putpat\.tv/video/.*#i'         => array( 'http://www.putpat.tv/oembed',              true  ),
     58                        'http://putp.at/*'                              => array( 'http://www.putpat.tv/oembed',              false )
    5759                ) );
    5860
    5961                // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().
     
    299301        return $wp_oembed;
    300302}
    301303
    302 ?>
    303  No newline at end of file
     304?>