diff options
Diffstat (limited to 'wp-admin/options.php')
-rw-r--r-- | wp-admin/options.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/wp-admin/options.php b/wp-admin/options.php index baccbe3..cb5763e 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -42,15 +42,14 @@ case 'update': if ($options) { foreach ($options as $option) { $option = trim($option); - $value = trim($_POST[$option]); - $value = sanitize_option($option, $value); // This does stripslashes on those that need it + $value = $_POST[$option]; + if(!is_array($value)) $value = trim($value); + $value = stripslashes_deep($value); update_option($option, $value); } } - - $referred = remove_query_arg('updated' , wp_get_referer()); + $goback = add_query_arg('updated', 'true', wp_get_referer()); - $goback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $goback); wp_redirect($goback); break; @@ -98,7 +97,6 @@ foreach ( (array) $options as $option) : else echo "<input class='$class' type='text' name='$option->option_name' id='$option->option_name' size='30' value='" . attribute_escape($value) . "'$disabled />"; echo "</td> - <td>$option->option_description</td> </tr>"; endforeach; ?> |