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

Should oik-batch set $_SERVER['DOCUMENT_ROOT'] ? #27

Open
bobbingwide opened this issue Mar 10, 2018 · 0 comments
Open

Should oik-batch set $_SERVER['DOCUMENT_ROOT'] ? #27

bobbingwide opened this issue Mar 10, 2018 · 0 comments

Comments

@bobbingwide
Copy link
Owner

While developing a routine to estimate the effort to migrate to the new block editor for WordPress ( codenamed Gutenberg ) I developed a routine to summarise my local development environments.
Since I needed to determine the current WordPress version of each local installation - to determine whether or not the Gutenberg plugin would run - I copied some code that finds it. This code used the value of $_SERVER['DOCUMENT_ROOT'] to locate the wp-includes/version.php file.
In oik-batch, this is not set.
Should it be?
Are there other settings in $_SERVER that we should also consider setting when running in CLI/batch mode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant