We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e8771a commit 34178c6Copy full SHA for 34178c6
lib/cli/Shell.php
@@ -112,7 +112,7 @@ static public function hide($hidden = true) {
112
*/
113
static public function is_windows() {
114
$test_is_windows = getenv( 'WP_CLI_TEST_IS_WINDOWS' );
115
- if ( false !== $test_is_windows ) {
+ if ( false !== $test_is_windows && '' !== $test_is_windows ) {
116
return (bool) $test_is_windows;
117
}
118
return strtoupper( substr( PHP_OS, 0, 3 ) ) === 'WIN';
0 commit comments