From dd514da169605aa03031992dbfe28e0167684481 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Thu, 27 Feb 2025 22:42:14 +0000 Subject: [PATCH] Embeds: Add support for youtube-nocookie.com domain. This adds Embed support for YouTube embeds coming from the youtube-nocookie.com domain. Props jepperask, birgire, williampatton, paapst, RogierLankhorst, utrenkner, BjornW, adakaleh, garrett-eclipse, hellofromTonya, xkon, francina, johnbillion, TimothyBlynJacobs, jottevanger, Mte90, didierjm, desrosj, masteradhoc, ryelle, audrasjb, abhi3315, sukhendu2002. Fixes #44610. git-svn-id: https://develop.svn.wordpress.org/trunk@59883 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 2d59c2217d..07a0ad4fdb 100644 --- a/src/wp-includes/class-wp-oembed.php +++ b/src/wp-includes/class-wp-oembed.php @@ -55,6 +55,7 @@ class WP_oEmbed { '#https?://((m|www)\.)?youtube\.com/playlist.*#i' => array( 'https://www.youtube.com/oembed', true ), '#https?://((m|www)\.)?youtube\.com/shorts/*#i' => array( 'https://www.youtube.com/oembed', true ), '#https?://((m|www)\.)?youtube\.com/live/*#i' => array( 'https://www.youtube.com/oembed', true ), + '#https?://((m|www)\.)?youtube-nocookie\.com/embed/.*#i' => array( 'https://www.youtube.com/oembed', true ), '#https?://youtu\.be/.*#i' => array( 'https://www.youtube.com/oembed', true ), '#https?://(.+\.)?vimeo\.com/.*#i' => array( 'https://vimeo.com/api/oembed.{format}', true ), '#https?://(www\.)?dailymotion\.com/.*#i' => array( 'https://www.dailymotion.com/services/oembed', true ), @@ -192,6 +193,7 @@ class WP_oEmbed { * | Anghami | anghami.com | 6.3.0 | * | Bluesky | bsky.app | 6.6.0 | * | Canva | canva.com | 6.8.0 | + * | YouTube | youtube-nocookie.com | 6.8.0 | * * No longer supported providers: *