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

WordPress Trac noreply at wordpress.org
Mon Apr 11 05:01:20 UTC 2022


#54703: Remove comment feed link if get_post_comments_feed_link() returns empty
-------------------------------------------------+-------------------------
 Reporter:  barryceelen                          |       Owner:
                                                 |  peterwilsoncc
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.0
Component:  Feeds                                |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:  template
  tests                                          |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

 * owner:  (none) => peterwilsoncc
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"53125" 53125]:
 {{{
 #!CommitTicketReference repository="" revision="53125"
 Feeds: Remove comment feed HTML headers when empty.

 Remove the `link[rel=alternate]` element from the HTML header when the
 comment feeds are disabled. Previously the HTML element was output with an
 empty `href` attribute.

 The element is removed if `get_post_comments_feed_link()` returns an empty
 string or the feed is disabled via the `feed_links_show_comments_feed`
 filter.

 Props barryceelen, audrasjb, costdev, rachelbaker, Boniu91.
 Fixes #54703.
 }}}

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


More information about the wp-trac mailing list