Don't trim option arrays on save. Props m0n5t3r, Nazgul. fixes #4571

git-svn-id: http://svn.automattic.com/wordpress/trunk@5886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-08-16 19:55:19 +00:00
parent 948284b296
commit 84f43891f6
1 changed files with 3 additions and 2 deletions

View File

@ -29,8 +29,9 @@ case 'update':
if ($options) {
foreach ($options as $option) {
$option = trim($option);
$value = trim($_POST[$option]);
$value = stripslashes($value);
$value = $_POST[$option];
if(!is_array($value)) $value = trim($value);
$value = stripslashes_deep($value);
update_option($option, $value);
}
}