You appear to be a bot. Output may be restricted
Description
Set the path for WPMSFor WPMS with a subdirectory install we need to know the directory in which WordPress is installed and the directory for the sub site. It turns out that, for WPMS subdirectory installs the url must contain the domain and the path contains the subdirectory and sub site. Note: To work properly in WPMS the path should start and end with a slash.
Usage
oik_batch_set_path();
Parameters
Returns
voidSource
File name: oik-libs/libs/oik-cli.phpLines:
1 to 8 of 8
function oik_batch_set_path() { $path = oik_batch_query_value_from_argv( "path", null ); if ( $path ) { $path = '/' . trim( $path, "/\\" ) . '/'; $_SERVER['REQUEST_URI'] = $path; echo "Path: $path" . PHP_EOL; } }View on GitHub