oEmbed discovery fails on encoded link URLs: decode HTML chars in the HTML-encoded URLs that are returned.
Props cweiske. Fixes #31213. git-svn-id: https://develop.svn.wordpress.org/trunk@31413 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5d35c181dc
commit
4f8c251c45
|
@ -352,7 +352,7 @@ class WP_oEmbed {
|
||||||
$atts = shortcode_parse_atts( $link );
|
$atts = shortcode_parse_atts( $link );
|
||||||
|
|
||||||
if ( !empty($atts['type']) && !empty($linktypes[$atts['type']]) && !empty($atts['href']) ) {
|
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)
|
// Stop here if it's JSON (that's all we need)
|
||||||
if ( 'json' == $linktypes[$atts['type']] )
|
if ( 'json' == $linktypes[$atts['type']] )
|
||||||
|
|
Loading…
Reference in New Issue