diff --git a/wp-admin/options.php b/wp-admin/options.php index dd972f44f1..0c9967a6f2 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -48,7 +48,7 @@ case 'update': // should we even bother checking? if ($user_level >= $option->option_admin_level) { $old_val = $option->option_value; - $new_val = wp_specialchars($_POST[$option->option_name]); + $new_val = wp_specialchars( trim($_POST[$option->option_name]) ); if (!$new_val) { if (3 == $option->option_type) $new_val = '';