Embeds: Add support for TikTok.

Props audrasjb, jblz, peterwilsoncc, felipeloureirosantos.
Fixes #49083.
Built from https://develop.svn.wordpress.org/trunk@47216


git-svn-id: http://core.svn.wordpress.org/trunk@47016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-02-09 04:55:06 +00:00
parent e713bf9a88
commit f454fc8165
2 changed files with 3 additions and 1 deletions

View File

@ -113,6 +113,7 @@ class WP_oEmbed {
'#https?://www\.someecards\.com/.+-cards/.+#i' => array( 'https://www.someecards.com/v2/oembed/', true ),
'#https?://www\.someecards\.com/usercards/viewcard/.+#i' => array( 'https://www.someecards.com/v2/oembed/', true ),
'#https?://some\.ly\/.+#i' => array( 'https://www.someecards.com/v2/oembed/', true ),
'#https?://(www\.)?tiktok\.com/.*/video/.*#i' => array( 'https://www.tiktok.com/oembed', true ),
);
if ( ! empty( self::$early_providers['add'] ) ) {
@ -195,6 +196,7 @@ class WP_oEmbed {
* | Crowdsignal | survey.fm | 5.1.0 |
* | Instagram TV | instagram.com | 5.1.0 |
* | Instagram TV | instagr.am | 5.1.0 |
* | TikTok | tiktok.com | 5.4.0 |
*
* No longer supported providers:
*

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.4-alpha-47215';
$wp_version = '5.4-alpha-47216';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.