mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
Properly escape comment_author_url when displaying, for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@11721 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -194,6 +194,7 @@ function comment_author_IP() {
|
||||
function get_comment_author_url() {
|
||||
global $comment;
|
||||
$url = ('http://' == $comment->comment_author_url) ? '' : $comment->comment_author_url;
|
||||
$url = esc_url( $url, array('http', 'https') );
|
||||
return apply_filters('get_comment_author_url', $url);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user