Make WordPress Core

Changeset 51821


Ignore:
Timestamp:
09/17/2021 03:12:35 AM (4 months ago)
Author:
pento
Message:

Embeds: Add Pinterest as a trusted oEmbed provider.

Props ayeshrajans, pento.

Fixes #53448.

File:
1 edited

Legend:

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

    r49927 r51821  
    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?://([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?/.*#i' => array( 'https://www.pinterest.com/oembed.json', true ),
    105106        );
    106107
     
    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:
Note: See TracChangeset for help on using the changeset viewer.