Trim updated options.
git-svn-id: https://develop.svn.wordpress.org/trunk@2067 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6424a1893f
commit
e37acd9362
@ -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 = '';
|
||||
|
Loading…
Reference in New Issue
Block a user