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

git-svn-id: https://develop.svn.wordpress.org/trunk@5886 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-08-16 19:55:19 +00:00
parent b6f4407016
commit f8084919be
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);
}
}