Make WordPress Core

Ticket #28597: 28597.diff

File 28597.diff, 793 bytes (added by hlashbrooke, 10 years ago)

First pass - seems pretty straightforward, but willing to accept if the regex isn't bulletproof..

  • class-oembed.php

     
    7777                        '#https?://(www\.)?reverbnation\.com/.*#i'            => array( 'https://www.reverbnation.com/oembed',                       true  ),
    7878                        '#https?://videopress.com/v/.*#'                      => array( 'https://public-api.wordpress.com/oembed/1.0/?for=' . $host, true  ),
    7979                        '#https?://(www\.)?reddit\.com/r/[^/]+/comments/.*#i' => array( 'https://www.reddit.com/oembed',                             true  ),
     80                        '#https?://(www\.)?speakerdeck\.com/.*#i/.*#i'            => array( 'https://speakerdeck.com/oembed.json',                       true  ),
    8081                );
    8182
    8283                if ( ! empty( self::$early_providers['add'] ) ) {