wordpress-develop/tests/phpunit/tests/general
Jb Audras 5aee8db5a2 Script Loader: Remove default DNS prefetch entry for s.w.org.
A default DNS prefetch entry for s.w.org was previously included to save a few ms in case an emoji is used that is not supported by the browser. It appears this use case doesn't justify a prefetch to s.w.org on every WordPress website.

This changesets removes `emoji_svg_url` prefetch from `wp_resource_hints()`. It also updates unit tests in `Tests_General_wpResourceHints` by removing `test_should_have_defaults_on_frontend()` entirely and removing s.w.org prefetch from expected output of ten other test functions.

Plugin authors can use the `wp_resource_hints` filter if they need to re-add the DNS prefetch entry for s.w.org.

Follow-up to [37920], [38122].

Props joelhardi, superpoincare, jhabdas, garrett-eclipse, sabernhardt, SergeyBiryukov.
Fixes #40426.
See #37387.


git-svn-id: https://develop.svn.wordpress.org/trunk@53904 602fd350-edb4-49c9-b593-d223f7449a82
2022-08-18 08:43:19 +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 Tests: Declare custom-logo theme support for custom logo tests. 2022-07-25 13:46:23 +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 Administration: Change default site tagline to an empty string. 2022-08-03 12:18:22 +00:00
wpPreloadResources.php Tests: Rename the test class for wp_preload_resources() tests. 2022-08-06 00:03:01 +00:00
wpResourceHints.php Script Loader: Remove default DNS prefetch entry for s.w.org. 2022-08-18 08:43:19 +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