Make WordPress Core

Changeset 35634


Ignore:
Timestamp:
11/12/2015 11:03:33 PM (9 years ago)
Author:
pento
Message:

Embeds: Add support for the www subdomain to Instagram embed URLs.

Props skithund.

Fixes #34651.

File:
1 edited

Legend:

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

    r35356 r35634  
    6060            '#https?://(www\.)?soundcloud\.com/.*#i'              => array( 'http://soundcloud.com/oembed',                              true  ),
    6161            '#https?://(.+?\.)?slideshare\.net/.*#i'              => array( 'https://www.slideshare.net/api/oembed/2',                   true  ),
    62             '#https?://instagr(\.am|am\.com)/p/.*#i'              => array( 'https://api.instagram.com/oembed',                          true  ),
     62            '#https?://(www\.)?instagr(\.am|am\.com)/p/.*#i'      => array( 'https://api.instagram.com/oembed',                          true  ),
    6363            '#https?://(www\.)?rdio\.com/.*#i'                    => array( 'http://www.rdio.com/api/oembed/',                           true  ),
    6464            '#https?://rd\.io/x/.*#i'                             => array( 'http://www.rdio.com/api/oembed/',                           true  ),
Note: See TracChangeset for help on using the changeset viewer.