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:
parent
948284b296
commit
84f43891f6
|
@ -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