WordPress.org

Make WordPress Core

Ticket #25265: add_mixlr_oembed_to_whitelist.diff

File add_mixlr_oembed_to_whitelist.diff, 840 bytes (added by mrgeorgegray, 8 years ago)
  • wp-includes/class-oembed.php

     
    5656                        '#https?://(www\.)?rdio\.com/.*#i'                   => array( 'http://www.rdio.com/api/oembed/',                   true  ),
    5757                        '#https?://rd\.io/x/.*#i'                            => array( 'http://www.rdio.com/api/oembed/',                   true  ),
    5858                        '#https?://(open|play)\.spotify\.com/.*#i'           => array( 'https://embed.spotify.com/oembed/',                 true  ),
     59                        'http://mixlr.com/*'                                 => array( 'http://mixlr.com/services/oembed/',                 false ),
    5960                ) );
    6061
    6162                // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().