J. Scott's fix pretty majorly broke options. Rolback.

git-svn-id: https://develop.svn.wordpress.org/trunk@1403 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-06-10 09:48:13 +00:00
parent f1cdd2b2ff
commit 91d8e3dfe5
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ $nonbools = array('default_ping_status', 'default_comment_status');
// should we even bother checking?
if ($user_level >= $option->option_admin_level) {
$old_val = stripslashes($option->option_value);
if(isset($_POST[$option->option_name])) $new_val = $_POST[$option->option_name];
$new_val = $_POST[$option->option_name];
if (!$new_val) {
if (3 == $option->option_type)
$new_val = '';