mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user