= 4 ); } add_action( 'pre_current_active_plugins', 'advmceconf_warn_plugins_screen' ); function advmceconf_warn_plugins_screen( $plugins ) { if ( advmceconf_is_mce_version_4() && get_option( 'advmceconf_version' ) < 12 ) { ?>

$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') . '

'; } if ( $version < 12 && advmceconf_is_mce_version_4() ) { update_option( 'advmceconf_version', 12 ); $version = 12; } elseif ( ! $version ) { update_option( 'advmceconf_version', 11 ); $version = 11; } } ?>

true or false, these strings are converted to boolean.', 'advmceconf'); ?>

.

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