[wp-trac] [WordPress Trac] #28314: cancel_comment_reply_link() is unflexible - respond_id & post check

WordPress Trac noreply at wordpress.org
Tue May 20 13:03:59 UTC 2014


#28314: cancel_comment_reply_link() is unflexible - respond_id & post check
--------------------------+-----------------------------
 Reporter:  Ninos Ego     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:  3.9.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 There are two found problems with the function
 {{{
 cancel_comment_reply_link()
 }}}

 1. You cannot define a custom respond id like #respond-POSTID. The respond
 id (#respond) is hardcoded. So the anchor is not working anymore, if you
 use a custom respond_id in your theme.
 2. If you include the comments on the blogs page (loop) you have comment
 areas as much as posts. Now you answer to a comment of a specific comment
 (for example: http://example.com/blog/?replytocom=210#respond-821). This
 is working fine, just that the cancel_comment_reply_link() is going active
 for all posts and shows a cancel message under each comment area. It
 should check for the specific comment area/post and return the message
 just for the affected comment area/post.

 If you want I can create a patch for this two bugs :-)

 Best regards,
 Ninos

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


More information about the wp-trac mailing list