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?
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?