From 437285dba4c63b3c0838b981f137070fef0c8559 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 28 Mar 2019 21:27:51 +0000 Subject: [PATCH] Embeds: Update the Crowdsignal embed handler so that surveys on subdomains are supported. Props kraftbj Fixes #46467 Built from https://develop.svn.wordpress.org/trunk@45061 git-svn-id: http://core.svn.wordpress.org/trunk@44870 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-oembed.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index 7e9d0611ac..1f8ad4106a 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -64,7 +64,7 @@ class WP_oEmbed { '#https?://wordpress\.tv/.*#i' => array( 'https://wordpress.tv/oembed/', true ), '#https?://(.+\.)?polldaddy\.com/.*#i' => array( 'https://api.crowdsignal.com/oembed', true ), '#https?://poll\.fm/.*#i' => array( 'https://api.crowdsignal.com/oembed', true ), - '#https?://survey\.fm/.*#i' => array( 'https://api.crowdsignal.com/oembed', true ), + '#https?://(.+\.)?survey\.fm/.*#i' => array( 'https://api.crowdsignal.com/oembed', true ), '#https?://(www\.)?twitter\.com/\w{1,15}/status(es)?/.*#i' => array( 'https://publish.twitter.com/oembed', true ), '#https?://(www\.)?twitter\.com/\w{1,15}$#i' => array( 'https://publish.twitter.com/oembed', true ), '#https?://(www\.)?twitter\.com/\w{1,15}/likes$#i' => array( 'https://publish.twitter.com/oembed', true ), diff --git a/wp-includes/version.php b/wp-includes/version.php index b441b9f3f4..3a0dcc1f60 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-beta1-45060'; +$wp_version = '5.2-beta1-45061'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.