Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
allow remote binary customization. Could be /custom/path/wp but als…
…o `sudo -u user /some/wp` would also allow running remote `wp-cli` under a distinct user
  • Loading branch information
Raphaël Droz committed Apr 29, 2025
commit 6c736ef9ceca100fafe586ec0b5b72f71f5b4b44
2 changes: 1 addition & 1 deletion php/WP_CLI/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@
$env_vars .= 'WP_CLI_STRICT_ARGS_MODE=1 ';
}

$wp_binary = 'wp';
$wp_binary = getenv( 'WP_CLI_SSH_BINARY' ) ?: 'wp';

Check warning on line 533 in php/WP_CLI/Runner.php

View check run for this annotation

Codecov / codecov/patch

php/WP_CLI/Runner.php#L533

Added line #L533 was not covered by tests
$wp_args = array_slice( $GLOBALS['argv'], 1 );

if ( $this->alias && ! empty( $wp_args[0] ) && $this->alias === $wp_args[0] ) {
Expand Down
Loading