[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
Tue Sep 15 20:45:36 UTC 2015


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

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34216"]:
 {{{
 #!CommitTicketReference repository="" revision="34216"
 Apply the new `'respond_link'` filter in `comments_popup_link()` if
 `$number` is `0` before outputting the URL.

 Props joedolson.
 Fixes #29454.
 }}}

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


More information about the wp-trac mailing list