Make WordPress Core

Ticket #34737: 34737.diff

File 34737.diff, 1.8 KB (added by pento, 9 years ago)
  • src/wp-includes/class-oembed.php

     
    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  ),
    8080                        '#https?://(www\.)?speakerdeck\.com/.*#i'             => array( 'https://speakerdeck.com/oembed.{format}',                   true  ),
     81                        '#https?://www\.facebook\.com/.*/video(s/|.php).*#i'  => array( 'https://www.facebook.com/plugins/video/oembed.json/',       true  ),
     82                        '#https?://www\.facebook\.com/.*/posts/.*#i'          => array( 'https://www.facebook.com/plugins/post/oembed.json/',        true  ),
     83                        '#https?://www\.facebook\.com/.*/activity/.*#i'       => array( 'https://www.facebook.com/plugins/post/oembed.json/',        true  ),
     84                        '#https?://www\.facebook\.com/photo(s/|.php).*#i'     => array( 'https://www.facebook.com/plugins/post/oembed.json/',        true  ),
     85                        '#https?://www\.facebook\.com/permalink.php.*#i'      => array( 'https://www.facebook.com/plugins/post/oembed.json/',        true  ),
     86                        '#https?://www\.facebook\.com/media/.*#i'             => array( 'https://www.facebook.com/plugins/post/oembed.json/',        true  ),
     87                        '#https?://www\.facebook\.com/questions/.*#i'         => array( 'https://www.facebook.com/plugins/post/oembed.json/',        true  ),
     88                        '#https?://www\.facebook\.com/notes/.*#i'             => array( 'https://www.facebook.com/plugins/post/oembed.json/',        true  ),
    8189                );
    8290
    8391                if ( ! empty( self::$early_providers['add'] ) ) {