$value) { if ( !in_array($key, array('_wpnonce', '_wp_http_referer')) ) $options[] = $key; } } else { $options = explode(',', stripslashes($_POST['page_options'])); } if ($options) { foreach ($options as $option) { $option = trim($option); $value = $_POST[$option]; if(!is_array($value)) $value = trim($value); $value = stripslashes_deep($value); update_option($option, $value); } } $goback = add_query_arg('updated', 'true', wp_get_referer()); wp_redirect($goback); break; default: include('admin-header.php'); ?>