From 62f25a49d3f3e1cf1b6fae18ca2de0c34fe092f5 Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Sun, 11 Sep 2022 22:23:48 +0000 Subject: [PATCH] Embeds: Add Google Data Studio as a trusted oEmbed provider Props swissspidy Fixes #55771 git-svn-id: https://develop.svn.wordpress.org/trunk@54129 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 ce75a4f196..58f5e484c4 100644 --- a/src/wp-includes/class-wp-oembed.php +++ b/src/wp-includes/class-wp-oembed.php @@ -105,6 +105,7 @@ class WP_oEmbed { '#https?://([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?/.*#i' => array( 'https://www.pinterest.com/oembed.json', true ), '#https?://(www\.)?wolframcloud\.com/obj/.+#i' => array( 'https://www.wolframcloud.com/oembed', true ), '#https?://pca\.st/.+#i' => array( 'https://pca.st/oembed.json', true ), + '#https?://datastudio\.google\.com/c/u/0/reporting/.+#i' => array( 'https://datastudio.google.com/oembed', true ), ); if ( ! empty( self::$early_providers['add'] ) ) { @@ -183,6 +184,7 @@ class WP_oEmbed { * | Pinterest | pinterest.com | 5.9.0 | * | WolframCloud | wolframcloud.com | 5.9.0 | * | Pocket Casts | pocketcasts.com | 6.1.0 | + * | Data Studio | datastudio.google.com | 6.1.0 | * * No longer supported providers: *