From 3bad5fa4fdf1ec04c2c24a276364e17122e2cab9 Mon Sep 17 00:00:00 2001 From: Jon Waldstein Date: Wed, 26 Aug 2026 10:04:03 -0400 Subject: [PATCH 1/2] Require wp-browser 4.7.2 for the icon-registry unhook WordPress 7.1 registers its default icon collections and icons on `init` and calls _doing_it_wrong() when either is registered twice, so a test that fires `init` again trips an unexpected incorrect-usage notice. WordPress core's test suite guards against this with _unhook_icon_registration(). wp-browser bundles its own copy of those core includes, and that guard landed in 4.7.2, so require at least that version instead of working around it locally. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01VMpTB259raeLKJBtGv3PBu --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d327fe4e..e41177af 100644 --- a/composer.json +++ b/composer.json @@ -51,7 +51,7 @@ "exussum12/coverage-checker": "^1.1", "lucatume/codeception-snapshot-assertions": "*", "lucatume/di52": "^3", - "lucatume/wp-browser": "*", + "lucatume/wp-browser": ">=4.7.2", "php-stubs/wp-cli-stubs": "^2", "phpcompatibility/phpcompatibility-wp": "^2", "phpspec/prophecy": "*", From d7c75ad3bb27ebe160c059f7746c34d61d981197 Mon Sep 17 00:00:00 2001 From: Jon Waldstein Date: Wed, 26 Aug 2026 10:08:06 -0400 Subject: [PATCH 2/2] Revert "Require wp-browser 4.7.2 for the icon-registry unhook" This reverts commit 3bad5fa4fdf1ec04c2c24a276364e17122e2cab9. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e41177af..d327fe4e 100644 --- a/composer.json +++ b/composer.json @@ -51,7 +51,7 @@ "exussum12/coverage-checker": "^1.1", "lucatume/codeception-snapshot-assertions": "*", "lucatume/di52": "^3", - "lucatume/wp-browser": ">=4.7.2", + "lucatume/wp-browser": "*", "php-stubs/wp-cli-stubs": "^2", "phpcompatibility/phpcompatibility-wp": "^2", "phpspec/prophecy": "*",