Skip to content
Snippets Groups Projects
Verified Commit 2892b24c authored by Kevin Cristiano's avatar Kevin Cristiano :earth_americas:
Browse files

CMS path fix in wp-cli #147 props aydun

parent 400e542a
No related branches found
No related tags found
No related merge requests found
......@@ -165,6 +165,12 @@ if ( ! defined( 'CIVICRM_WPCLI_LOADED' ) ) {
return WP_CLI::error( "Unrecognized command - '$command'" );
}
# if --path is set, save for later use by Civi
global $civicrm_paths;
if (!empty(WP_CLI::get_config('path'))) {
$civicrm_paths['cms.root']['path'] = WP_CLI::get_config('path');
}
# run command
return $this->{$command_router[ $command ]}();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment