mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +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:
@@ -89,8 +89,8 @@ function get_comment_to_edit( $id ) {
|
||||
|
||||
$comment->comment_author = format_to_edit( $comment->comment_author );
|
||||
$comment->comment_author_email = format_to_edit( $comment->comment_author_email );
|
||||
$comment->comment_author_url = esc_url($comment->comment_author_url);
|
||||
$comment->comment_author_url = format_to_edit( $comment->comment_author_url );
|
||||
$comment->comment_author_url = esc_url($comment->comment_author_url);
|
||||
|
||||
return $comment;
|
||||
}
|
||||
|
||||
@@ -2082,9 +2082,7 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true,
|
||||
$author_url = get_comment_author_url();
|
||||
if ( 'http://' == $author_url )
|
||||
$author_url = '';
|
||||
$author_url_display = $author_url;
|
||||
$author_url_display = str_replace('http://www.', '', $author_url_display);
|
||||
$author_url_display = str_replace('http://', '', $author_url_display);
|
||||
$author_url_display = preg_replace('|http://(www\.)?|i', '', $author_url);
|
||||
if ( strlen($author_url_display) > 50 )
|
||||
$author_url_display = substr($author_url_display, 0, 49) . '...';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user