From dcf1b4c87319a8b8aead0bd8db8a9fc338a06441 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Tue, 7 Feb 2023 02:56:19 +0000 Subject: [PATCH] Embeds: Update YouTube provider for live URLs. YouTube Live stream URLs can take the form of `youtube.com/live/videocode`. This registers the URL format for the oembed provider. Props slieschke, costdev. Fixes #57632. Built from https://develop.svn.wordpress.org/trunk@55242 git-svn-id: http://core.svn.wordpress.org/trunk@54775 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-oembed.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-oembed.php b/wp-includes/class-wp-oembed.php index b2906eba16..544cb4d87b 100644 --- a/wp-includes/class-wp-oembed.php +++ b/wp-includes/class-wp-oembed.php @@ -54,6 +54,7 @@ class WP_oEmbed { '#https?://((m|www)\.)?youtube\.com/watch.*#i' => array( 'https://www.youtube.com/oembed', true ), '#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?://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 ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 113dde5c82..bb3a3aec28 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55241'; +$wp_version = '6.2-alpha-55242'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.