Make WordPress Core


Ignore:
Timestamp:
10/23/2015 05:13:27 AM (9 years ago)
Author:
dd32
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r35241 r35368  
    250250            unset($stati['trash']);
    251251
    252         $link = 'edit-comments.php';
     252        $link = admin_url( 'edit-comments.php' );
    253253        if ( !empty($comment_type) && 'all' != $comment_type )
    254254            $link = add_query_arg( 'comment_type', $comment_type, $link );
     
    700700            $author_ip = get_comment_author_IP( $comment );
    701701            if ( $author_ip ) {
    702                 $author_ip_url = add_query_arg( array( 's' => $author_ip, 'mode' => 'detail' ), 'edit-comments.php' );
     702                $author_ip_url = add_query_arg( array( 's' => $author_ip, 'mode' => 'detail' ), admin_url( 'edit-comments.php' ) );
    703703                if ( 'spam' === $comment_status ) {
    704704                    $author_ip_url = add_query_arg( 'comment_status', 'spam', $author_ip_url );
Note: See TracChangeset for help on using the changeset viewer.