bbPress Smiley Choice: '.__('All Settings Reset To Defaults.').''); // , 'error' wp_redirect(remove_query_arg(array('bb_schoice_reset'))); // bug workaround, page doesn't show reset settings } elseif (isset($_POST['submit']) && isset($_POST['bb_schoice'])) { foreach(array_keys( $bb_schoice) as $key) { if (isset($_POST[$key])) {$bb_schoice[$key]=$_POST[$key];} } bb_update_option('bb_schoice',$bb_schoice); // unset($GLOBALS['bb_schoice']); $bb_schoice = bb_get_option('bb_schoice'); } } } function bb_schoice_admin() { global $bb_schoice,$bb_schoice_type,$bb_schoice_extra; ?>