$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'); ?>

.

paste_retain_style_properties

false, 'quicktags' => false ) ); ob_end_clean(); if ( !empty($advmceconf_show_defaults) && is_array($advmceconf_show_defaults) ) { $n = 1; $change = esc_attr( __('Change', 'advmceconf') ); foreach ( $advmceconf_show_defaults as $def_field => $def_value ) { if ( is_bool( $def_value ) ) $def_value = $def_value ? 'true' : 'false'; ?>

$value ) { $field = esc_attr( $field ); $id = "advmceconf_option-{$field}"; $name = "advmceconf_options[{$field}]"; if ( is_bool($value) ) $value = $value ? 'true' : 'false'; ?>