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