Fix send_to_editor escaping. Props Glotzfisch. fixes #6898 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7874 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ab3b479868
commit
1bd67cf3b4
@ -55,7 +55,7 @@ function get_image_send_to_editor($id, $alt, $title, $align, $url='', $rel = fal
|
||||
$rel = $rel ? ' rel="attachment wp-att-'.attribute_escape($id).'"' : '';
|
||||
|
||||
if ( $url )
|
||||
$html = "<a href='".attribute_escape($url)."'$rel>$html</a>";
|
||||
$html = '<a href="' . clean_url($url) . "\"$rel>$html</a>";
|
||||
|
||||
$html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url, $size );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user