[wp-trac] [WordPress Trac] #54703: Remove comment feed link if get_post_comments_feed_link() returns empty

WordPress Trac noreply at wordpress.org
Tue Dec 28 11:13:31 UTC 2021


#54703: Remove comment feed link if get_post_comments_feed_link() returns empty
-------------------------+-----------------------------
 Reporter:  barryceelen  |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Feeds        |    Version:  5.8.2
 Severity:  normal       |   Keywords:
  Focuses:  template     |
-------------------------+-----------------------------
 The `feed_links_show_comments_feed` filter allows you to remove the
 comment feed URL for a single post. Even with the
 `feed_links_show_comments_feed` filter returning `false`, core still adds
 a feed link (albeit with an empty href attribute) via the
 `feed_links_extra()` function.

 [https://github.com/WordPress/WordPress/blob/master/wp-includes/general-
 template.php#L3158]

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


More information about the wp-trac mailing list