WordPress.org

Make WordPress Core

Changeset 29735


Ignore:
Timestamp:
09/11/2014 07:24:07 PM (5 years ago)
Author:
wonderboymusic
Message:

Allow arbitrary subdomains for the oEmbed endpoint for Slideshare.

Props Latz.
Fixes #29427.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-oembed.php

    r29476 r29735  
    5353            '#https?://(www\.)?twitter\.com/.+?/status(es)?/.*#i' => array( 'https://api.twitter.com/1/statuses/oembed.{format}', true  ),
    5454            '#https?://(www\.)?soundcloud\.com/.*#i'              => array( 'http://soundcloud.com/oembed',                       true  ),
    55             '#https?://(www\.)?slideshare\.net/.*#i'              => array( 'https://www.slideshare.net/api/oembed/2',            true  ),
     55            '#https?://(.+?\.)?slideshare\.net/.*#i'              => array( 'https://www.slideshare.net/api/oembed/2',            true  ),
    5656            '#http://instagr(\.am|am\.com)/p/.*#i'                => array( 'http://api.instagram.com/oembed',                    true  ),
    5757            '#https?://(www\.)?rdio\.com/.*#i'                    => array( 'http://www.rdio.com/api/oembed/',                    true  ),
Note: See TracChangeset for help on using the changeset viewer.