Embeds: Add Instagram TV support.

Props dannydehaan.
Fixes #44557.



git-svn-id: https://develop.svn.wordpress.org/trunk@44486 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast 2019-01-09 00:23:35 +00:00
parent b9e752770c
commit d2f0d5c812

View File

@ -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:
*