Commit 84f43891 authored by ryan's avatar ryan

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
parent 948284b2
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment