From 511e9cfade92120c6a48d8a840a6074f4a73afac Mon Sep 17 00:00:00 2001 From: desrosj Date: Mon, 20 Jul 2020 13:12:01 +0000 Subject: [PATCH] Embeds: Remove Hulu from the list of supported oEmbed providers. The oEmbed service for Hulu no longer works and appears to have been silently disabled. Props tacitonic, talldanwp, youknowriad, bph. Fixes #50676. Built from https://develop.svn.wordpress.org/trunk@48512 git-svn-id: http://core.svn.wordpress.org/trunk@48274 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-oembed.php | 3 +-- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-oembed.php b/wp-includes/class-wp-oembed.php index 9a073a3955..65c3c51576 100644 --- a/wp-includes/class-wp-oembed.php +++ b/wp-includes/class-wp-oembed.php @@ -59,7 +59,6 @@ class WP_oEmbed { '#https?://(www\.)?flickr\.com/.*#i' => array( 'https://www.flickr.com/services/oembed/', true ), '#https?://flic\.kr/.*#i' => array( 'https://www.flickr.com/services/oembed/', true ), '#https?://(.+\.)?smugmug\.com/.*#i' => array( 'https://api.smugmug.com/services/oembed/', true ), - '#https?://(www\.)?hulu\.com/watch/.*#i' => array( 'https://www.hulu.com/api/oembed.{format}', true ), '#https?://(www\.)?scribd\.com/(doc|document)/.*#i' => array( 'https://www.scribd.com/services/oembed', true ), '#https?://wordpress\.tv/.*#i' => array( 'https://wordpress.tv/oembed/', true ), '#https?://(.+\.)?polldaddy\.com/.*#i' => array( 'https://api.crowdsignal.com/oembed', true ), @@ -143,7 +142,6 @@ class WP_oEmbed { * | ------------ | ----------------------------------------- | ------- | * | Dailymotion | dailymotion.com | 2.9.0 | * | Flickr | flickr.com | 2.9.0 | - * | Hulu | hulu.com | 2.9.0 | * | Scribd | scribd.com | 2.9.0 | * | Vimeo | vimeo.com | 2.9.0 | * | WordPress.tv | wordpress.tv | 2.9.0 | @@ -212,6 +210,7 @@ class WP_oEmbed { * | Photobucket | photobucket.com | 2.9.0 | 5.1.0 | * | Funny or Die | funnyordie.com | 3.0.0 | 5.1.0 | * | CollegeHumor | collegehumor.com | 4.0.0 | 5.3.1 | + * | Hulu | hulu.com | 2.9.0 | 5.4.2 | * * @see wp_oembed_add_provider() * diff --git a/wp-includes/version.php b/wp-includes/version.php index c1daa1ba37..cce6c4b682 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-beta2-48511'; +$wp_version = '5.5-beta2-48512'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.