Fix variable name typo. Patch from MooKitty.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3dbecf7853
commit
c6e7c51122
|
@ -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