Repository navigation
Tests: Cover wp_dependencies_unique_hosts() - #15790
devmuhib009 wants to merge 2 commits into
Conversation
See #65819. Props devmuhib009.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
huzaifaalmesbah
left a comment
There was a problem hiding this comment.
Thanks for the patch, @devmuhib009! Good coverage for wp_dependencies_unique_hosts() extracting hostnames from script/style dependencies.
Per #65819 comment 1521, test-only additions need their own dedicated Trac ticket in the component of the code under test instead of #65819.
For wp_dependencies_unique_hosts() in src/wp-includes/general-template.php, the component is General (or Script Loader).
Could you please:
- Open a dedicated Trac ticket under General (or Script Loader) with the
has-patchandhas-unit-testskeywords and link this PR. - Update the
Trac ticket:URL in this PR's description. - Update the
@ticket 65819annotations inwpDependenciesUniqueHosts.phpwith the new ticket ID.
AI Review: Gemini 3.8 Flash
See #66613. Props devmuhib009.
Description
Adds unit tests for the
wp_dependencies_unique_hosts()function insrc/wp-includes/general-template.php.The tests cover:
$_SERVER['SERVER_NAME']).Test-only change.
Testing Instructions
Trac ticket: https://core.trac.wordpress.org/ticket/66613