From: scribu Date: Tue, 6 Aug 2013 23:26:41 +0000 (+0300) Subject: option update: use non-strict comparison X-Git-Tag: v0.11.1~5^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f98a6f19fa6ca169e8e97ee3509dc1c410c56598;p=wvm%2Fwvm.git option update: use non-strict comparison --- diff --git a/php/commands/option.php b/php/commands/option.php index ccefe5bf..a825342c 100644 --- a/php/commands/option.php +++ b/php/commands/option.php @@ -67,7 +67,7 @@ class Option_Command extends WP_CLI_Command { $result = update_option( $key, $value ); // update_option() returns false if the value is the same - if ( !$result && $value !== get_option( $key ) ) { + if ( !$result && $value != get_option( $key ) ) { WP_CLI::error( "Could not update option '$key'." ); } else { WP_CLI::success( "Updated '$key' option." );