WordPress.org

Make WordPress Core

Ticket #11978: 11978.patch

File 11978.patch, 788 bytes (added by philipsoutham, 4 years ago)

Adds movieclips.com to whitelist of approved oembed providers.

  • wp-includes/class-oembed.php

     
    5050                        'http://gi*.photobucket.com/groups/*'   => array( 'http://photobucket.com/oembed',            false ), 
    5151                        '#http://(www\.)?scribd\.com/.*#i'      => array( 'http://www.scribd.com/services/oembed',    true  ), 
    5252                        'http://wordpress.tv/*'                 => array( 'http://wordpress.tv/oembed/',              false ), 
     53                        '#http://(www\.)?movieclips.com/watch/[\w]+/[\w]+/#i' => array( 'http://movieclips.com/services/oembed/', true ), 
    5354                ) ); 
    5455 
    5556                // Fix Scribd embeds. They contain new lines in the middle of the HTML which breaks wpautop().