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:
parent
b6f4407016
commit
f8084919be
@ -29,8 +29,9 @@ case 'update':
|
|||||||
if ($options) {
|
if ($options) {
|
||||||
foreach ($options as $option) {
|
foreach ($options as $option) {
|
||||||
$option = trim($option);
|
$option = trim($option);
|
||||||
$value = trim($_POST[$option]);
|
$value = $_POST[$option];
|
||||||
$value = stripslashes($value);
|
if(!is_array($value)) $value = trim($value);
|
||||||
|
$value = stripslashes_deep($value);
|
||||||
update_option($option, $value);
|
update_option($option, $value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user