[wp-trac] [WordPress Trac] #29454: comments_link filter can not be run on comments_popup_link if post has no comments.

WordPress Trac noreply at wordpress.org
Sat Oct 25 21:19:55 UTC 2014


#29454: comments_link filter can not be run on comments_popup_link if post has no
comments.
--------------------------+------------------------------
 Reporter:  joedolson     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Comments      |     Version:  2.5
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  template
--------------------------+------------------------------

Comment (by joedolson):

 I think that a new filter would definitely work, too - I'll add a patch
 for that, instead. Practically speaking, the important thing is to be able
 to filter the comment link whether the post has comments or not; using
 `get_respond_link` as a filter would fulfill that.

 For consistency, I think that the filter should probably be
 `respond_link`, since it's run in a printing function.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29454#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list