Skip to content

Conversation

@adamziel
Copy link
Collaborator

Some WordPress plugins emit output during activation. Before this PR, Playground treated that as an activation error. But that's not right, the plugin may still get activated. This PR checks in with WordPress whether or not the plugin is activated after we're tried to activate it. If it is, that's our success.

Testing Instructions (or ideally a Blueprint)

CI, this PR ships a new test.

Plugin activation step choked when PHP emitted extra output during the verification run, mis-parsing the active plugin list and throwing even though activation succeeded. I now wrap a second marker-delimited status check when unexpected output appears and added a regression test where activation and shutdown hooks echo text, confirming we log the noise and continue.
@adamziel adamziel marked this pull request as ready for review November 18, 2025 01:06
Updated the activation response handling to check for JSON success output.
@adamziel adamziel merged commit 8c80ae9 into trunk Nov 18, 2025
29 checks passed
@adamziel adamziel deleted the plugin-activation-verification branch November 18, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants