Use correct escaping function. props duck_.

git-svn-id: http://core.svn.wordpress.org/branches/3.4@23323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-01-22 16:39:36 +00:00
parent 1bcc0a8f03
commit d281b16d1e
1 changed files with 1 additions and 1 deletions

View File

@ -1312,7 +1312,7 @@ class WP_Embed {
* @return string Linked URL or the original URL.
*/
function maybe_make_link( $url ) {
$output = ( $this->linkifunknown ) ? '<a href="' . esc_attr($url) . '">' . esc_html($url) . '</a>' : $url;
$output = ( $this->linkifunknown ) ? '<a href="' . esc_url($url) . '">' . esc_html($url) . '</a>' : $url;
return apply_filters( 'embed_maybe_make_link', $output, $url );
}
}