Make WordPress Core

Changeset 32786


Ignore:
Timestamp:
06/16/2015 12:18:39 AM (9 years ago)
Author:
wonderboymusic
Message:

In get_comment_reply_link(), when generating the reply link, add the replytocom query arg to the result of get_permalink() on the current $post, instead of the current global request URI.

Props nazmul.hossain.nihal.
Fixes #31333.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment-template.php

    r32769 r32786  
    14391439
    14401440        $link = sprintf( "<a class='comment-reply-link' href='%s' onclick='%s' aria-label='%s'>%s</a>",
    1441             esc_url( add_query_arg( 'replytocom', $comment->comment_ID ) ) . "#" . $args['respond_id'],
     1441            esc_url( add_query_arg( 'replytocom', $comment->comment_ID, get_permalink( $post->ID ) ) ) . "#" . $args['respond_id'],
    14421442            $onclick,
    14431443            esc_attr( sprintf( $args['reply_to_text'], $comment->comment_author ) ),
Note: See TracChangeset for help on using the changeset viewer.