[wp-trac] [WordPress Trac] #46588: comment-reply JavaScript not working with comments loaded via Ajax

WordPress Trac noreply at wordpress.org
Thu Mar 21 15:40:43 UTC 2019


#46588: comment-reply JavaScript not working with comments loaded via Ajax
--------------------------+-----------------------------
 Reporter:  dcooney       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:  5.1
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 When loading comments via Ajax, the 'Reply' button {{{comment-reply.js}}}
 does not trigger on the newly added comments. This causes a link action to
 be performed rather than moving the reply box to the desired position.

 I also noticed in the {{{get_comment_reply_link}}} method of {{{includes
 /comment-template.php}}} that the comment reply link is the admin-ajax or
 REST API endpoint URL rather than the actual page URL with
 {{{?replytocom=13#respond}}} appended.

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


More information about the wp-trac mailing list