wordpress-develop/tests/phpunit/tests/general
Peter Wilson 3c804bbead 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@53125 602fd350-edb4-49c9-b593-d223f7449a82
2022-04-11 05:01:04 +00:00
..
feedLinksExtra.php Feeds: Remove comment feed HTML headers when empty. 2022-04-11 05:01:04 +00:00
paginateLinks.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
template_CheckedSelectedHelper.php Code Modernization: Rename the readonly() function to wp_readonly(). 2021-08-09 17:19:21 +00:00
template.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
wpError.php Build/Test Tools: Implement use of the void solution. 2021-08-07 10:29:41 +00:00
wpGetArchives.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
wpGetDocumentTitle.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
wpResourceHints.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00
wpTitle.php Template: Fix "undefined index: 00" when archive month query is empty in wp_title(). 2021-11-11 16:27:44 +00:00