Make WordPress Core

Ticket #53448: 53448.patch

File 53448.patch, 1.1 KB (added by ayeshrajans, 3 years ago)

Adding a rudimentary patch with the URL match pattern and the changelog entry.

  • 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 4226e8163e..07e12ab95c 100644
    a b public function __construct() { 
    102102                        '#https?://www\.someecards\.com/usercards/viewcard/.+#i' => array( 'https://www.someecards.com/v2/oembed/', true ),
    103103                        '#https?://some\.ly\/.+#i'                     => array( 'https://www.someecards.com/v2/oembed/', true ),
    104104                        '#https?://(www\.)?tiktok\.com/.*/video/.*#i'  => array( 'https://www.tiktok.com/oembed', true ),
     105                        '#https?://(www\.)?pinterest\.com/pin/\d+.*#i' => array( 'https://www.pinterest.com/oembed.json', true ),
    105106                );
    106107
    107108                if ( ! empty( self::$early_providers['add'] ) ) {
    public function __construct() { 
    179180                 * | Someecards   | some.ly                                   | 4.9.0   |
    180181                 * | Crowdsignal  | survey.fm                                 | 5.1.0   |
    181182                 * | TikTok       | tiktok.com                                | 5.4.0   |
     183                 * | Pinterest    | pinterest.com                             | 5.9.0   |
    182184                 *
    183185                 * No longer supported providers:
    184186                 *