| @@ -16,9 +16,9 @@ | ||
| 16 | 16 | * @param string $command Command to execute. |
| 17 | 17 | * @param string $cwd Directory to execute the command in. |
| 18 | 18 | * @return SM_CLI_Process |
| 19 | 19 | */ |
| 20 | - public static function create( $command, $cwd = null ) { | |
| 20 | + public static function create( $command, $cwd = ABSPATH ) { | |
| 21 | 21 | $proc = new self; |
| 22 | 22 | |
| 23 | 23 | $proc->command = $command; |
| 24 | 24 | $proc->cwd = $cwd; |