Make WordPress Core

Ticket #49083: 49083.diff

File 49083.diff, 1.1 KB (added by audrasjb, 5 years ago)

Adds TikTok oEmbed

  • src/wp-includes/class-wp-oembed.php

    diff --git a/src/wp-includes/class-wp-oembed.php b/src/wp-includes/class-wp-oembed.php
    index 26ca7173d4..36825fc9bc 100644
    a b class WP_oEmbed { 
    113113                        '#https?://www\.someecards\.com/.+-cards/.+#i' => array( 'https://www.someecards.com/v2/oembed/', true ),
    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
    118119                if ( ! empty( self::$early_providers['add'] ) ) {
    class WP_oEmbed { 
    195196                 * | Crowdsignal  | survey.fm                                 | 5.1.0   |
    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:
    200202                 *