You appear to be a bot. Output may be restricted
Description
Set the OIK_BATCH_DIR constantIf you want to run oik-wp/oik-batch against the current directory then it would make sense to assume that the files come from within this directory somewhere However, get_plugin_files() – return a list of files relative to the plugin's root uses WP_PLUGIN_DIR which is set from ABSPATH. If we try to set ABSPATH then we'll have to ensure that ALL of the plugins needed by the oik-wp routine are within the current directory. This is not going to be the case. SO… get_plugin_files() should not be used when OIK_BATCH_DIR is set differently from WP_PLUGIN_DIR This change will also be necessary when we want to support themes.
Usage
oik_batch_define_oik_batch_dir();
Parameters
Returns
voidSource
File name: oik-batch/libs/oik-cli.phpLines:
1 to 5 of 5
function oik_batch_define_oik_batch_dir() { ///if ( !defined( 'OIK_BATCH_DIR' ) ) { // define( 'OIK_BATCH_DIR', getcwd() ); //} }View on GitHub