mirror of
https://ghproxy.net/https://github.com/jonbp/wp-cli-sync.git
synced 2025-10-04 02:35:05 +08:00
Require Fixes
This commit is contained in:
parent
974f6fcca3
commit
6992f8272e
2 changed files with 2 additions and 4 deletions
|
@ -14,9 +14,7 @@
|
|||
"minimum-stability": "dev",
|
||||
"require": {
|
||||
"wp-cli/wp-cli": "^2.1",
|
||||
"wp-cli/db-command": "^2.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"wp-cli/db-command": "^2.0",
|
||||
"wp-cli/extension-command": "^2.0"
|
||||
}
|
||||
}
|
|
@ -89,7 +89,7 @@ if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
|||
if(!empty($dev_activated_plugins)) {
|
||||
task_message('Activate Plugins');
|
||||
$cleaned_arr_list = preg_replace('/[ ,]+/', ' ', trim($dev_activated_plugins));
|
||||
$command = 'wp plugin activate '.$cleaned_arr_list;
|
||||
$command = './vendor/bin/wp plugin activate '.$cleaned_arr_list;
|
||||
system($command);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue