WordPress.org

Make WordPress Core

Ticket #27958: 27958.diff

File 27958.diff, 759 bytes (added by morganestes, 5 years ago)

Add Wistia endpoint to oEmbed whitelist.

  • wp-includes/class-oembed.php

     
    5656                        '#https?://(open|play)\.spotify\.com/.*#i'            => array( 'https://embed.spotify.com/oembed/',                  true  ),
    5757                        '#https?://(.+\.)?imgur\.com/.*#i'                    => array( 'http://api.imgur.com/oembed',                        true  ),
    5858                        '#https?://(www\.)?meetu(\.ps|p\.com)/.*#i'           => array( 'http://api.meetup.com/oembed',                       true  ),
     59                        '#https?:\/\/(.+)?(wistia.com|wi.st)\/.*#'            => array( 'http://fast.wistia.com/oembed',                      true  ),
    5960                );
    6061
    6162                /**