Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wp-now: Remove magic WordPress loading for php command #441

Merged
merged 4 commits into from
May 25, 2023

Conversation

danielbachhuber
Copy link
Member

Fixes #438

What?

Removes the magic WordPress loading for the wp-now php command.

Why?

It's not particularly intuitive that you get WordPress when you run wp-now php. It's more intuitive that WordPress will load if you run WP-CLI, so let's keep the behavior for that feature (WordPress/playground-tools#25).

Testing Instructions

Tests should pass.

@wojtekn
Copy link
Collaborator

wojtekn commented May 25, 2023

I like the change, works well.

@sejas
Copy link
Collaborator

sejas commented May 25, 2023

👍 thanks !
I can create another PR to accept/pass multiple arguments to php.

@danielbachhuber
Copy link
Member Author

I can create another PR to accept/pass multiple arguments to php.

@sejas Great! I assigned you to #437. I tried yesterday but I couldn't sort it out.

@danielbachhuber danielbachhuber merged commit e5bc036 into trunk May 25, 2023
@danielbachhuber danielbachhuber deleted the remove/wp-now-magic-wordpress-loading branch May 25, 2023 10:50
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.

Local Environment: wp-cli php fails to run a script
3 participants