Skip to content

Commit 50deb81

Browse files
Nikschavanschlessera
authored andcommitted
Do a strict check for the flag skip-update-check
1 parent 5a482ae commit 50deb81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WP_CLI/CommandWithUpgrade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ static function ( $result ) {
482482
protected function _list( $_, $assoc_args ) {
483483

484484
// Force WordPress to check for updates if `--skip-update-check` is not passed.
485-
if ( Utils\get_flag_value( $assoc_args, 'skip-update-check', false ) ) {
485+
if ( false === (bool) Utils\get_flag_value( $assoc_args, 'skip-update-check', false ) ) {
486486
call_user_func( $this->upgrade_refresh );
487487
}
488488

0 commit comments

Comments
 (0)