mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Cleanup options save.
git-svn-id: https://develop.svn.wordpress.org/trunk@3054 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -342,7 +342,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 )
|
||||
return true;
|
||||
return false;
|
||||
|
||||
if ( false === $oldvalue ) {
|
||||
add_option($option_name, $newvalue);
|
||||
|
||||
Reference in New Issue
Block a user