From d2aca078b6b8a4ca1e64bc6a76050130fefe2351 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Fri, 23 Oct 2015 05:14:25 +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 Built from https://develop.svn.wordpress.org/trunk@35368 git-svn-id: http://core.svn.wordpress.org/trunk@35332 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-comments-list-table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index 7a06cd13e3..f71e5fe82a 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/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 ); }