WordPress.org

Make WordPress Core

Changeset 47216


Ignore:
Timestamp:
02/09/2020 04:53:29 AM (4 months ago)
Author:
SergeyBiryukov
Message:

Embeds: Add support for TikTok.

Props audrasjb, jblz, peterwilsoncc, felipeloureirosantos.
Fixes #49083.

File:
1 edited

Legend:

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

    r47122 r47216  
    114114            '#https?://www\.someecards\.com/usercards/viewcard/.+#i' => array( 'https://www.someecards.com/v2/oembed/', true ),
    115115            '#https?://some\.ly\/.+#i'                     => array( 'https://www.someecards.com/v2/oembed/', true ),
     116            '#https?://(www\.)?tiktok\.com/.*/video/.*#i'  => array( 'https://www.tiktok.com/oembed', true ),
    116117        );
    117118
     
    196197         * | Instagram TV | instagram.com                             | 5.1.0   |
    197198         * | Instagram TV | instagr.am                                | 5.1.0   |
     199         * | TikTok       | tiktok.com                                | 5.4.0   |
    198200         *
    199201         * No longer supported providers:
Note: See TracChangeset for help on using the changeset viewer.