From f98a6f19fa6ca169e8e97ee3509dc1c410c56598 Mon Sep 17 00:00:00 2001 From: scribu Date: Wed, 7 Aug 2013 02:26:41 +0300 Subject: [PATCH] option update: use non-strict comparison --- php/commands/option.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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." ); -- 2.11.0