We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8b064c7 + 6c736ef commit 98e8ec8Copy full SHA for 98e8ec8
php/WP_CLI/Runner.php
@@ -530,7 +530,7 @@ private function run_ssh_command( $connection_string ) {
530
$env_vars .= 'WP_CLI_STRICT_ARGS_MODE=1 ';
531
}
532
533
- $wp_binary = 'wp';
+ $wp_binary = getenv( 'WP_CLI_SSH_BINARY' ) ?: 'wp';
534
$wp_args = array_slice( $GLOBALS['argv'], 1 );
535
536
if ( $this->alias && ! empty( $wp_args[0] ) && $this->alias === $wp_args[0] ) {
0 commit comments