From ab9b51e5e31a565c6da5398d4af51d4749168a90 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Fri, 17 Sep 2021 03:12:35 +0000 Subject: [PATCH] Embeds: Add Pinterest as a trusted oEmbed provider. Props ayeshrajans, pento. Fixes #53448. git-svn-id: https://develop.svn.wordpress.org/trunk@51821 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-oembed.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/class-wp-oembed.php b/src/wp-includes/class-wp-oembed.php index 4226e8163e..2efb890305 100644 --- a/src/wp-includes/class-wp-oembed.php +++ b/src/wp-includes/class-wp-oembed.php @@ -102,6 +102,7 @@ class WP_oEmbed { '#https?://www\.someecards\.com/usercards/viewcard/.+#i' => array( 'https://www.someecards.com/v2/oembed/', true ), '#https?://some\.ly\/.+#i' => array( 'https://www.someecards.com/v2/oembed/', true ), '#https?://(www\.)?tiktok\.com/.*/video/.*#i' => array( 'https://www.tiktok.com/oembed', true ), + '#https?://([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?/.*#i' => array( 'https://www.pinterest.com/oembed.json', true ), ); if ( ! empty( self::$early_providers['add'] ) ) { @@ -179,6 +180,7 @@ class WP_oEmbed { * | Someecards | some.ly | 4.9.0 | * | Crowdsignal | survey.fm | 5.1.0 | * | TikTok | tiktok.com | 5.4.0 | + * | Pinterest | pinterest.com | 5.9.0 | * * No longer supported providers: *