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

git-svn-id: http://svn.automattic.com/wordpress/trunk@1403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-06-10 09:48:13 +00:00
parent f9d3eafb29
commit 8357db3dcf
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 = '';