1
0
mirror of https://github.com/WordPress/WordPress.git synced 2025-01-11 10:59:07 +01:00

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 , 
Fixes 

Built from https://develop.svn.wordpress.org/trunk@35368


git-svn-id: http://core.svn.wordpress.org/trunk@35332 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse 2015-10-23 05:14:25 +00:00
parent a579aad05b
commit d2aca078b6

View File

@ -249,7 +249,7 @@ class WP_Comments_List_Table extends WP_List_Table {
if ( !EMPTY_TRASH_DAYS ) if ( !EMPTY_TRASH_DAYS )
unset($stati['trash']); unset($stati['trash']);
$link = 'edit-comments.php'; $link = admin_url( 'edit-comments.php' );
if ( !empty($comment_type) && 'all' != $comment_type ) if ( !empty($comment_type) && 'all' != $comment_type )
$link = add_query_arg( 'comment_type', $comment_type, $link ); $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 ); $author_ip = get_comment_author_IP( $comment );
if ( $author_ip ) { 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 ) { if ( 'spam' === $comment_status ) {
$author_ip_url = add_query_arg( 'comment_status', 'spam', $author_ip_url ); $author_ip_url = add_query_arg( 'comment_status', 'spam', $author_ip_url );
} }