Opened 10 years ago
Closed 9 years ago
#31333 closed defect (bug) (fixed)
Comment reply link broken in ajax call
Reported by: | aruns6578 | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | 4.1 |
Component: | Comments | Keywords: | has-patch |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (10)
This ticket was mentioned in Slack in #core by shelob9. View the logs.
10 years ago
Note: See
TracTickets for help on using
tickets.
patch for comment-template.php