From 70e367f72f1110a056b0a60bf47a2404fd9f3918 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 23 Feb 2007 00:49:37 +0000 Subject: [PATCH] Use === to compare option values. Props roscohead and Viper007Bond. fixes #3394 git-svn-id: https://develop.svn.wordpress.org/trunk@4920 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 87df25ebf5..644e45e1fe 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -309,7 +309,7 @@ function update_option($option_name, $newvalue) { // If the new and old values are the same, no need to update. $oldvalue = get_option($option_name); - if ( $newvalue == $oldvalue ) { + if ( $newvalue === $oldvalue ) { return false; }