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:
parent
7ff77d2e02
commit
056e47fdef
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user