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:
parent
f9d3eafb29
commit
8357db3dcf
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in New Issue