Skip to content

Fix acorn binary not working when WP-CLI is installed via Composer#518

Merged
retlehs merged 2 commits into
roots:mainfrom
stefanfisk:patch-3
Mar 10, 2026
Merged

Fix acorn binary not working when WP-CLI is installed via Composer#518
retlehs merged 2 commits into
roots:mainfrom
stefanfisk:patch-3

Conversation

@stefanfisk

@stefanfisk stefanfisk commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

Fixes #517

stefanfisk and others added 2 commits March 10, 2026 13:33
Verifies that bootWpCli() is not called when the WP_CLI class exists
(via Composer autoload) but the WP_CLI constant is not defined.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

@retlehs retlehs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR - added a test verifying expected behavior

@retlehs retlehs merged commit 947b3af into roots:main Mar 10, 2026
5 checks passed
@stefanfisk stefanfisk deleted the patch-3 branch March 10, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

acorn binary does not work when WP-CLI is installed via Composer

2 participants