Make WordPress Core

Ticket #20102: vimeo-oembed-https.2.diff

File vimeo-oembed-https.2.diff, 1.1 KB (added by johnjamesjacoby, 12 years ago)

Patch was stale. Refreshed for whitespace. (wcgr)

  • wp-includes/class-oembed.php

     
    3333                        '#http://(www\.)?youtube.com/watch.*#i'              => array( 'http://www.youtube.com/oembed',                     true  ),
    3434                        'http://youtu.be/*'                                  => array( 'http://www.youtube.com/oembed',                     false ),
    3535                        'http://blip.tv/*'                                   => array( 'http://blip.tv/oembed/',                            false ),
    36                         '#http://(www\.)?vimeo\.com/.*#i'                    => array( 'http://vimeo.com/api/oembed.{format}',              true  ),
     36                        '#https?://(www\.)?vimeo\.com/.*#i'                  => array( 'http://vimeo.com/api/oembed.{format}',              true  ),
    3737                        '#http://(www\.)?dailymotion\.com/.*#i'              => array( 'http://www.dailymotion.com/services/oembed',        true  ),
    3838                        '#http://(www\.)?flickr\.com/.*#i'                   => array( 'http://www.flickr.com/services/oembed/',            true  ),
    3939                        '#http://(.+\.)?smugmug\.com/.*#i'                   => array( 'http://api.smugmug.com/services/oembed/',           true  ),