$val ) { $key = preg_replace( '/[^a-z0-9_]+/i', '', $key ); if ( empty($key) ) continue; if ( isset( $_POST[$key] ) && empty( $_POST[$key] ) ) { unset( $options[$key] ); continue; } $val = stripslashes($val); if ( 'true' == $val ) $options[$key] = true; elseif ( 'false' == $val ) $options[$key] = false; else $options[$key] = $val; } if ( $options != $old_options ) { update_option('advmceconf_options', $options); $message = '
' . __('Options saved.', 'advmceconf') . '
true or false, these strings are converted to boolean.', 'advmceconf'); ?>