[wp-trac] [WordPress Trac] #31333: Comment reply link broken in ajax call

WordPress Trac noreply at wordpress.org
Sat Feb 14 21:53:11 UTC 2015


#31333: Comment reply link broken in ajax call
--------------------------+-----------------------------
 Reporter:  aruns6578     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:  4.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Will it be okay to change

 {{{
 esc_url( add_query_arg( 'replytocom', $comment->comment_ID ) ) . "#" .
 $args['respond_id']
 }}}

 to

 {{{
 esc_url( add_query_arg( 'replytocom', $comment->comment_ID,
 get_permalink($post->ID) ) ) . "#" . $args['respond_id']
 }}}

 at line [https://core.trac.wordpress.org/browser/tags/4.1/src/wp-includes
 /comment-template.php#L1412]

 The get_comment_reply_link function sends wrong URL when requested via
 ajax call.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31333>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list