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:
parent
40a13971f9
commit
62186b5a46
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user