Make WordPress Core

Changeset 59883


Ignore:
Timestamp:
02/27/2025 10:42:14 PM (3 weeks ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

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

    r59598 r59883  
    5656            '#https?://((m|www)\.)?youtube\.com/shorts/*#i' => array( 'https://www.youtube.com/oembed', true ),
    5757            '#https?://((m|www)\.)?youtube\.com/live/*#i'  => array( 'https://www.youtube.com/oembed', true ),
     58            '#https?://((m|www)\.)?youtube-nocookie\.com/embed/.*#i' => array( 'https://www.youtube.com/oembed', true ),
    5859            '#https?://youtu\.be/.*#i'                     => array( 'https://www.youtube.com/oembed', true ),
    5960            '#https?://(.+\.)?vimeo\.com/.*#i'             => array( 'https://vimeo.com/api/oembed.{format}', true ),
     
    193194         * | Bluesky      | bsky.app                                  | 6.6.0   |
    194195         * | Canva        | canva.com                                 | 6.8.0   |
     196         * | YouTube      | youtube-nocookie.com                      | 6.8.0   |
    195197         *
    196198         * No longer supported providers:
Note: See TracChangeset for help on using the changeset viewer.