Make WordPress Core


Ignore:
Timestamp:
02/07/2023 02:54:06 AM (10 months ago)
Author:
peterwilsoncc
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-oembed.php

    r55182 r55242  
    5555            '#https?://((m|www)\.)?youtube\.com/playlist.*#i' => array( 'https://www.youtube.com/oembed', true ),
    5656            '#https?://((m|www)\.)?youtube\.com/shorts/*#i' => array( 'https://www.youtube.com/oembed', true ),
     57            '#https?://((m|www)\.)?youtube\.com/live/*#i'  => array( 'https://www.youtube.com/oembed', true ),
    5758            '#https?://youtu\.be/.*#i'                     => array( 'https://www.youtube.com/oembed', true ),
    5859            '#https?://(.+\.)?vimeo\.com/.*#i'             => array( 'https://vimeo.com/api/oembed.{format}', true ),
Note: See TracChangeset for help on using the changeset viewer.