mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Trim updated options.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2067 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
837a9db1a4
commit
3440138f04
@ -48,7 +48,7 @@ case 'update':
|
|||||||
// should we even bother checking?
|
// should we even bother checking?
|
||||||
if ($user_level >= $option->option_admin_level) {
|
if ($user_level >= $option->option_admin_level) {
|
||||||
$old_val = $option->option_value;
|
$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 (!$new_val) {
|
||||||
if (3 == $option->option_type)
|
if (3 == $option->option_type)
|
||||||
$new_val = '';
|
$new_val = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user