Make WordPress Core

Ticket #51132: 51132.patch

File 51132.patch, 1.2 KB (added by ayeshrajans, 6 years ago)
  • 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 881de68103..552595a7ec 100644
    a b public function __construct() { 
    113113                        '#https?://www\.someecards\.com/usercards/viewcard/.+#i' => array( 'https://www.someecards.com/v2/oembed/', true ),
    114114                        '#https?://some\.ly\/.+#i'                     => array( 'https://www.someecards.com/v2/oembed/', true ),
    115115                        '#https?://(www\.)?tiktok\.com/.*/video/.*#i'  => array( 'https://www.tiktok.com/oembed', true ),
     116                        '#https?://(www.)?deezer.com/([a-z]{2}/)?(track|album|playlist)/\d.*#i'  => array( 'https://api.deezer.com/oembed', true ),
    116117                );
    117118
    118119                if ( ! empty( self::$early_providers['add'] ) ) {
    public function __construct() { 
    195196                 * | Instagram TV | instagram.com                             | 5.1.0   |
    196197                 * | Instagram TV | instagr.am                                | 5.1.0   |
    197198                 * | TikTok       | tiktok.com                                | 5.4.0   |
     199                 * | Deezer       | deezer.com                                | 5.6.0   |
    198200                 *
    199201                 * No longer supported providers:
    200202                 *