Make WordPress Core

Changeset 45061


Ignore:
Timestamp:
03/28/2019 09:26:20 PM (6 years ago)
Author:
johnbillion
Message:

Embeds: Update the Crowdsignal embed handler so that surveys on subdomains are supported.

Props kraftbj

Fixes #46467

File:
1 edited

Legend:

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

    r45024 r45061  
    6565            '#https?://(.+\.)?polldaddy\.com/.*#i'         => array( 'https://api.crowdsignal.com/oembed', true ),
    6666            '#https?://poll\.fm/.*#i'                      => array( 'https://api.crowdsignal.com/oembed', true ),
    67             '#https?://survey\.fm/.*#i'                    => array( 'https://api.crowdsignal.com/oembed', true ),
     67            '#https?://(.+\.)?survey\.fm/.*#i'             => array( 'https://api.crowdsignal.com/oembed', true ),
    6868            '#https?://(www\.)?twitter\.com/\w{1,15}/status(es)?/.*#i' => array( 'https://publish.twitter.com/oembed', true ),
    6969            '#https?://(www\.)?twitter\.com/\w{1,15}$#i'   => array( 'https://publish.twitter.com/oembed', true ),
Note: See TracChangeset for help on using the changeset viewer.