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

WordPress Trac noreply at wordpress.org
Thu Dec 30 21:39:15 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:  6.0
Component:  Feeds                    |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  template
-------------------------------------+-----------------------

Comment (by rachelbaker):

 @costdev Thanks for working on unit tests for `feed_links_extra()`. They
 will be a great addition to this ticket, or separately.

 Is it possible for `$href` to be an empty string in the output of the
 other template uses of this function? (post type, taxonomy, author, etc).
 Trying to understand the implications of the empty string conditional in
 one condition of this MEATY function.

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


More information about the wp-trac mailing list