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:
parent
318ad90a22
commit
677762f6cf
|
@ -76,6 +76,7 @@ class WP_oEmbed {
|
||||||
'#https?://cloudup\.com/.*#i' => array( 'https://cloudup.com/oembed', true ),
|
'#https?://cloudup\.com/.*#i' => array( 'https://cloudup.com/oembed', true ),
|
||||||
'#https?://(www\.)?reverbnation\.com/.*#i' => array( 'https://www.reverbnation.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?://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'] ) ) {
|
if ( ! empty( self::$early_providers['add'] ) ) {
|
||||||
|
@ -143,6 +144,7 @@ class WP_oEmbed {
|
||||||
* | Cloudup | cloudup.com | Yes | 4.4.0 |
|
* | Cloudup | cloudup.com | Yes | 4.4.0 |
|
||||||
* | ReverbNation | reverbnation.com | Yes | 4.4.0 |
|
* | ReverbNation | reverbnation.com | Yes | 4.4.0 |
|
||||||
* | VideoPress | videopress.com | Yes | 4.4.0 |
|
* | VideoPress | videopress.com | Yes | 4.4.0 |
|
||||||
|
* | Reddit | reddit.com | Yes | 4.4.0 |
|
||||||
*
|
*
|
||||||
* No longer supported providers:
|
* No longer supported providers:
|
||||||
*
|
*
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue