Make WordPress Core

Ticket #28285: oembed-ted.patch

File oembed-ted.patch, 740 bytes (added by pdclark, 11 years ago)

Add oEmbed support for TED talks. Same syntax used by TED's WordPress sites, like blog.ted.com

  • wp-includes/class-oembed.php

    diff --git wp-includes/class-oembed.php wp-includes/class-oembed.php
    index 353837f..5974c64 100644
    class WP_oEmbed { 
    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?://((?:www|embed)\.)?ted\.com/talks/.*#i'     => array( 'http://www.ted.com/talks/oembed.{format}',           true  ),
    5960                );
    6061
    6162                /**