Unescape ampersands before making an oEmbed request. props Viper007Bond, fixes #14514, see #11311.

git-svn-id: https://develop.svn.wordpress.org/trunk@16728 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-12-05 02:23:17 +00:00
parent d61f1f5ce2
commit 250e2876de

View File

@ -1158,6 +1158,10 @@ class WP_Embed {
$rawattr = $attr;
$attr = wp_parse_args( $attr, wp_embed_defaults() );
// kses converts & into & and we need to undo this
// See http://core.trac.wordpress.org/ticket/11311
$url = str_replace( '&', '&', $url );
// Look for known internal handlers
ksort( $this->handlers );
foreach ( $this->handlers as $priority => $handlers ) {