From c6dea4c784df14a41359a220175504456e346fb5 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Wed, 9 Jan 2019 00:24:50 +0000 Subject: [PATCH] Embeds: Add Instagram TV support. Props dannydehaan. Fixes #44557. Built from https://develop.svn.wordpress.org/trunk@44486 git-svn-id: http://core.svn.wordpress.org/trunk@44317 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-oembed.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index 3fdfe8c534..24072fcefe 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -76,7 +76,7 @@ class WP_oEmbed { '#https?://(www\.)?twitter\.com/i/moments/.*#i' => array( 'https://publish.twitter.com/oembed', true ), '#https?://(www\.)?soundcloud\.com/.*#i' => array( 'https://soundcloud.com/oembed', true ), '#https?://(.+?\.)?slideshare\.net/.*#i' => array( 'https://www.slideshare.net/api/oembed/2', true ), - '#https?://(www\.)?instagr(\.am|am\.com)/p/.*#i' => array( 'https://api.instagram.com/oembed', true ), + '#https?://(www\.)?instagr(\.am|am\.com)/(p|tv)/.*#i' => array( 'https://api.instagram.com/oembed', true ), '#https?://(open|play)\.spotify\.com/.*#i' => array( 'https://embed.spotify.com/oembed/', true ), '#https?://(.+\.)?imgur\.com/.*#i' => array( 'https://api.imgur.com/oembed', true ), '#https?://(www\.)?meetu(\.ps|p\.com)/.*#i' => array( 'https://api.meetup.com/oembed', true ), @@ -200,6 +200,8 @@ class WP_oEmbed { * | Someecards | someecards.com | Yes | 4.9.0 | * | Someecards | some.ly | Yes | 4.9.0 | * | Crowdsignal | survey.fm | Yes | 5.1.0 | + * | Instagram TV | instagram.com | Yes | 5.1.0 | + * | Instagram TV | instagr.am | Yes | 5.1.0 | * * No longer supported providers: * diff --git a/wp-includes/version.php b/wp-includes/version.php index 0ecec89612..9492999043 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44485'; +$wp_version = '5.1-alpha-44486'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.