mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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. Built from https://develop.svn.wordpress.org/trunk@59883 git-svn-id: http://core.svn.wordpress.org/trunk@59225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f37de3c6ac
commit
ac2ce38de7
@ -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:
|
||||
*
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59882';
|
||||
$wp_version = '6.8-alpha-59883';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user