Embeds: Add oEmbed support for User, List and Like Twitter timelines.
Props earnjam. Fixes #38003. Built from https://develop.svn.wordpress.org/trunk@38693 git-svn-id: http://core.svn.wordpress.org/trunk@38636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9d73dfdc56
commit
b154ab767e
|
@ -72,8 +72,11 @@ class WP_oEmbed {
|
||||||
'#https?://(.+\.)?polldaddy\.com/.*#i' => array( 'https://polldaddy.com/oembed/', true ),
|
'#https?://(.+\.)?polldaddy\.com/.*#i' => array( 'https://polldaddy.com/oembed/', true ),
|
||||||
'#https?://poll\.fm/.*#i' => array( 'https://polldaddy.com/oembed/', true ),
|
'#https?://poll\.fm/.*#i' => array( 'https://polldaddy.com/oembed/', true ),
|
||||||
'#https?://(www\.)?funnyordie\.com/videos/.*#i' => array( 'http://www.funnyordie.com/oembed', true ),
|
'#https?://(www\.)?funnyordie\.com/videos/.*#i' => array( 'http://www.funnyordie.com/oembed', true ),
|
||||||
'#https?://(www\.)?twitter\.com/.+?/status(es)?/.*#i' => array( 'https://publish.twitter.com/oembed', true ),
|
'#https?://(www\.)?twitter\.com/\w{1,15}/status(es)?/.*#i' => array( 'https://publish.twitter.com/oembed', true ),
|
||||||
'#https?://(www\.)?twitter\.com/.+?/timelines/.*#i' => array( 'https://publish.twitter.com/oembed', true ),
|
'#https?://(www\.)?twitter\.com/\w{1,15}$#i' => array( 'https://publish.twitter.com/oembed', true ),
|
||||||
|
'#https?://(www\.)?twitter\.com/\w{1,15}/likes$#i' => array( 'https://publish.twitter.com/oembed', true ),
|
||||||
|
'#https?://(www\.)?twitter\.com/\w{1,15}/lists/.*#i' => array( 'https://publish.twitter.com/oembed', true ),
|
||||||
|
'#https?://(www\.)?twitter\.com/\w{1,15}/timelines/.*#i' => array( 'https://publish.twitter.com/oembed', true ),
|
||||||
'#https?://(www\.)?twitter\.com/i/moments/.*#i' => array( 'https://publish.twitter.com/oembed', true ),
|
'#https?://(www\.)?twitter\.com/i/moments/.*#i' => array( 'https://publish.twitter.com/oembed', true ),
|
||||||
'#https?://vine\.co/v/.*#i' => array( 'https://vine.co/oembed.{format}', true ),
|
'#https?://vine\.co/v/.*#i' => array( 'https://vine.co/oembed.{format}', true ),
|
||||||
'#https?://(www\.)?soundcloud\.com/.*#i' => array( 'https://soundcloud.com/oembed', true ),
|
'#https?://(www\.)?soundcloud\.com/.*#i' => array( 'https://soundcloud.com/oembed', true ),
|
||||||
|
@ -175,6 +178,9 @@ class WP_oEmbed {
|
||||||
* | Twitter | twitter.com/timelines | Yes | 4.5.0 |
|
* | Twitter | twitter.com/timelines | Yes | 4.5.0 |
|
||||||
* | Twitter | twitter.com/moments | Yes | 4.5.0 |
|
* | Twitter | twitter.com/moments | Yes | 4.5.0 |
|
||||||
* | Facebook | facebook.com | Yes | 4.7.0 |
|
* | Facebook | facebook.com | Yes | 4.7.0 |
|
||||||
|
* | Twitter | twitter.com/user | Yes | 4.7.0 |
|
||||||
|
* | Twitter | twitter.com/likes | Yes | 4.7.0 |
|
||||||
|
* | Twitter | twitter.com/lists | Yes | 4.7.0 |
|
||||||
*
|
*
|
||||||
* No longer supported providers:
|
* No longer supported providers:
|
||||||
*
|
*
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.7-alpha-38692';
|
$wp_version = '4.7-alpha-38693';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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