oEmbed: add Reddit Comments as a provider

Docs: https://github.com/reddit/reddit/wiki/oEmbed

Props swissspidy.
Fixes #31752.


Built from https://develop.svn.wordpress.org/trunk@35356


git-svn-id: http://core.svn.wordpress.org/trunk@35322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-10-22 18:17:24 +00:00
parent 318ad90a22
commit 677762f6cf
2 changed files with 3 additions and 1 deletions

View File

@ -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:
*

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-35355';
$wp_version = '4.4-alpha-35356';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.