Cleanup options save.

git-svn-id: https://develop.svn.wordpress.org/trunk@3054 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-11-12 09:36:20 +00:00
parent 357311cd6a
commit f10f98f0a7
8 changed files with 23 additions and 31 deletions
+1 -1
View File
@@ -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);