mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
Use correct escaping function. props duck_.
git-svn-id: https://develop.svn.wordpress.org/branches/3.4@23323 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c1fc3fbf5a
commit
f6f138ce47
@ -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 );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user