Use correct escaping function. props duck_.

git-svn-id: https://develop.svn.wordpress.org/trunk@23321 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-01-22 16:37:54 +00:00
parent 7ff77d2e02
commit 056e47fdef
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,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 );
}
}