bobbingwide / oik-batch

Batch interface to WordPress
https://www.oik-plugins.com/oik-plugins/oik-batch
GNU General Public License v2.0
0 stars 0 forks source link

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

Open bobbingwide opened 6 years ago

bobbingwide commented 6 years ago

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?