From a37f75eb8731d30facb5205f758b63ea72560f1b Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 22 Oct 2015 18:16:12 +0000 Subject: [PATCH] oEmbed: add Reddit Comments as a provider Docs: https://github.com/reddit/reddit/wiki/oEmbed Props swissspidy. Fixes #31752. git-svn-id: https://develop.svn.wordpress.org/trunk@35356 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-oembed.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/class-oembed.php b/src/wp-includes/class-oembed.php index 1f2399a42d..cbfb55bdb9 100644 --- a/src/wp-includes/class-oembed.php +++ b/src/wp-includes/class-oembed.php @@ -76,6 +76,7 @@ class WP_oEmbed { '#https?://cloudup\.com/.*#i' => array( 'https://cloudup.com/oembed', true ), '#https?://(www\.)?reverbnation\.com/.*#i' => array( 'https://www.reverbnation.com/oembed', true ), '#https?://videopress.com/v/.*#' => array( 'https://public-api.wordpress.com/oembed/1.0/?for=' . $host, true ), + '#https?://(www\.)?reddit\.com/r/[^/]+/comments/.*#i' => array( 'https://www.reddit.com/oembed', true ), ); if ( ! empty( self::$early_providers['add'] ) ) { @@ -143,6 +144,7 @@ class WP_oEmbed { * | Cloudup | cloudup.com | Yes | 4.4.0 | * | ReverbNation | reverbnation.com | Yes | 4.4.0 | * | VideoPress | videopress.com | Yes | 4.4.0 | + * | Reddit | reddit.com | Yes | 4.4.0 | * * No longer supported providers: *