Fix variable name typo. Patch from MooKitty.

git-svn-id: https://develop.svn.wordpress.org/trunk@1587 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-09-03 21:50:06 +00:00
parent 40a13971f9
commit 62186b5a46
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ $nonbools = array('default_ping_status', 'default_comment_status');
else
$new_val = 0;
}
if( in_array($option->option_name, $nonbools) && $new_val == 0 ) $new_value = 'closed';
if( in_array($option->option_name, $nonbools) && $new_val == 0 ) $new_val = 'closed';
if ($new_val !== $old_val) {
$query = "UPDATE $wpdb->options SET option_value = '$new_val' WHERE option_name = '$option->option_name'";
$result = $wpdb->query($query);