Fix send_to_editor escaping. Props Glotzfisch. fixes #6898 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@7874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-05-02 17:25:54 +00:00
parent 90f52c0fc3
commit b9e595d3a5
1 changed files with 1 additions and 1 deletions

View File

@ -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).'"' : ''; $rel = $rel ? ' rel="attachment wp-att-'.attribute_escape($id).'"' : '';
if ( $url ) 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 ); $html = apply_filters( 'image_send_to_editor', $html, $id, $alt, $title, $align, $url, $size );