oEmbed discovery fails on encoded link URLs: decode HTML chars in the HTML-encoded URLs that are returned.

Props cweiske.
Fixes #31213.

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


git-svn-id: http://core.svn.wordpress.org/trunk@31394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-02-11 16:13:26 +00:00
parent 7ff18dae4e
commit cd4fc46cf2
2 changed files with 2 additions and 2 deletions

View File

@ -352,7 +352,7 @@ class WP_oEmbed {
$atts = shortcode_parse_atts( $link );
if ( !empty($atts['type']) && !empty($linktypes[$atts['type']]) && !empty($atts['href']) ) {
$providers[$linktypes[$atts['type']]] = $atts['href'];
$providers[$linktypes[$atts['type']]] = htmlspecialchars_decode( $atts['href'] );
// Stop here if it's JSON (that's all we need)
if ( 'json' == $linktypes[$atts['type']] )

View File

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