From 743fe671f178fe5c17fe01d727147582df1ea4e3 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Fri, 23 Oct 2015 05:13:27 +0000 Subject: [PATCH] Comments: Use a full URL rather than a relative one for links which can contain IPv6 addresses to avoid an issue where the URL was being eaten by escaping functions. See #34407, #34202 Fixes #34054 git-svn-id: https://develop.svn.wordpress.org/trunk@35368 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-comments-list-table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/class-wp-comments-list-table.php b/src/wp-admin/includes/class-wp-comments-list-table.php index 7a06cd13e3..f71e5fe82a 100644 --- a/src/wp-admin/includes/class-wp-comments-list-table.php +++ b/src/wp-admin/includes/class-wp-comments-list-table.php @@ -249,7 +249,7 @@ class WP_Comments_List_Table extends WP_List_Table { if ( !EMPTY_TRASH_DAYS ) unset($stati['trash']); - $link = 'edit-comments.php'; + $link = admin_url( 'edit-comments.php' ); if ( !empty($comment_type) && 'all' != $comment_type ) $link = add_query_arg( 'comment_type', $comment_type, $link ); @@ -699,7 +699,7 @@ class WP_Comments_List_Table extends WP_List_Table { $author_ip = get_comment_author_IP( $comment ); if ( $author_ip ) { - $author_ip_url = add_query_arg( array( 's' => $author_ip, 'mode' => 'detail' ), 'edit-comments.php' ); + $author_ip_url = add_query_arg( array( 's' => $author_ip, 'mode' => 'detail' ), admin_url( 'edit-comments.php' ) ); if ( 'spam' === $comment_status ) { $author_ip_url = add_query_arg( 'comment_status', 'spam', $author_ip_url ); }