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
This commit is contained in:
parent
6a3b784104
commit
a37f75eb87
|
@ -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:
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue