Skip to content

Conversation

brandonpayton
Copy link
Member

Motivation for the change, related issues

Playground CLI will refuse to boot for an existing WP site due to a WP install failure even when --skip-wordpress-setup is enabled.

This is a PR to fix that.

Implementation details

In the bootWordPress() function, do not perform WP installation if no wordpressZip is provided.

Testing Instructions (or ideally a Blueprint)

  • CI
@brandonpayton brandonpayton self-assigned this Sep 11, 2025
@brandonpayton brandonpayton added [Type] Bug An existing feature does not function as intended [Package][@wp-playground] CLI labels Sep 11, 2025
@brandonpayton brandonpayton requested a review from a team September 11, 2025 02:17
@brandonpayton
Copy link
Member Author

@adamziel, the small change in this PR makes sense to me, but I'm concerned that I could be forgetting a valid use case for the current behavior. Is there any reason this change does not make sense?

@brandonpayton
Copy link
Member Author

With this change, the Playground CLI no longet refuses to boot when there is a DB config issue and --skip-wordpress-setup is provided. In that case, the server boots and shows the "Error establishing a database connection" page.

When --skip-wordpress-setup is not provided and there is a DB error during WP install, Playground CLI fails to boot.

I believe this is the desired behavior.

@adamziel
Copy link
Collaborator

I also think this change makes sense, thank you @brandonpayton!

@adamziel adamziel merged commit ea9ef42 into trunk Sep 11, 2025
26 checks passed
@adamziel adamziel deleted the playground-cli-truly-skip-wordpress-setup branch September 11, 2025 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package][@wp-playground] CLI [Type] Bug An existing feature does not function as intended

2 participants