PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 3.1.5
MxChat – AI Chatbot & Content Generation for WordPress v3.1.5
3.2.21 3.2.20 3.2.19 3.2.18 3.2.17 3.2.16 3.2.15 3.2.14 3.2.12 3.2.13 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 3.2.6 3.2.5 3.2.4 3.2.3 3.2.2 3.2.1 2.0.3 2.0.4 2.0.5 2.0.6 All 152 releases
← All changes | mxchat-basic.php +6 -25 3.2.23.1.5 View file →
@@ -2,9 +2,9 @@
2 2 /**
3 3 * Plugin Name: MxChat
4 4 * Plugin URI: https://mxchat.ai/
5 5 * Description: AI chatbot for WordPress with OpenAI, Claude, xAI, DeepSeek, live agent, PDF uploads, WooCommerce, and training on website data.
6 - * Version: 3.2.2
6 + * Version: 3.1.5
7 7 * Author: MxChat
8 8 * Author URI: https://mxchat.ai
9 9 * License: GPLv2 or later
10 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -741,9 +741,9 @@
741 741 if (in_array($current_model, $deprecated_claude_models, true)) {
742 742 $options['model'] = 'claude-opus-4-6';
743 743 $migrated = true;
744 744 $migration_message = sprintf(
745 - 'Your chatbot model has been automatically updated from %s to Claude Opus 4.6 due to Anthropic deprecating older Claude models.',
745 + __('Your chatbot model has been automatically updated from %s to Claude Opus 4.6 due to Anthropic deprecating older Claude models.', 'mxchat'),
746 746 $current_model
747 747 );
748 748 }
749 749
@@ -750,9 +750,9 @@
750 750 // Migrate deprecated Claude Haiku 3.5 to Claude Haiku 4.5
751 751 if ($current_model === 'claude-3-5-haiku-20241022') {
752 752 $options['model'] = 'claude-haiku-4-5-20251001';
753 753 $migrated = true;
754 - $migration_message = 'Your chatbot model has been automatically updated from Claude Haiku 3.5 to Claude Haiku 4.5 due to Anthropic deprecating the older model.';
754 + $migration_message = __('Your chatbot model has been automatically updated from Claude Haiku 3.5 to Claude Haiku 4.5 due to Anthropic deprecating the older model.', 'mxchat');
755 755 }
756 756
757 757 // Migrate deprecated GPT-4 series and GPT-3.5 Turbo to GPT-5.1 Chat Latest
758 758 if (in_array($current_model, array('gpt-4o', 'gpt-4.1-2025-04-14', 'gpt-4-turbo', 'gpt-4', 'gpt-3.5-turbo'), true)) {
@@ -758,9 +758,9 @@
758 758 if (in_array($current_model, array('gpt-4o', 'gpt-4.1-2025-04-14', 'gpt-4-turbo', 'gpt-4', 'gpt-3.5-turbo'), true)) {
759 759 $options['model'] = 'gpt-5.1-chat-latest';
760 760 $migrated = true;
761 761 $migration_message = sprintf(
762 - 'Your chatbot model has been automatically updated from %s to GPT-5.1 Chat Latest due to OpenAI deprecating older models.',
762 + __('Your chatbot model has been automatically updated from %s to GPT-5.1 Chat Latest due to OpenAI deprecating older models.', 'mxchat'),
763 763 $current_model
764 764 );
765 765 }
766 766
@@ -768,9 +768,9 @@
768 768 if (in_array($current_model, array('gpt-4o-mini', 'gpt-4.1-mini'), true)) {
769 769 $options['model'] = 'gpt-5-mini';
770 770 $migrated = true;
771 771 $migration_message = sprintf(
772 - 'Your chatbot model has been automatically updated from %s to GPT-5 Mini due to OpenAI deprecating GPT-4 series models.',
772 + __('Your chatbot model has been automatically updated from %s to GPT-5 Mini due to OpenAI deprecating GPT-4 series models.', 'mxchat'),
773 773 $current_model
774 774 );
775 775 }
776 776
@@ -837,26 +837,13 @@
837 837 enabled_bots LONGTEXT DEFAULT NULL,
838 838 PRIMARY KEY (id)
839 839 ) $charset_collate;";
840 840
841 - // Individual Intent Phrases Table - each phrase gets its own embedding vector
842 - $intent_phrases_table = $wpdb->prefix . 'mxchat_intent_phrases';
843 - $sql_intent_phrases_table = "CREATE TABLE $intent_phrases_table (
844 - id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
845 - intent_id BIGINT(20) UNSIGNED NOT NULL,
846 - phrase TEXT NOT NULL,
847 - embedding_vector LONGTEXT NOT NULL,
848 - created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
849 - PRIMARY KEY (id),
850 - KEY intent_id (intent_id)
851 - ) $charset_collate;";
852 -
853 841 require_once ABSPATH . 'wp-admin/includes/upgrade.php';
854 842
855 843 // Create other tables
856 844 dbDelta($sql_system_prompt);
857 845 dbDelta($sql_intents_table);
858 - dbDelta($sql_intent_phrases_table);
859 846
860 847 // Create URL click tracking table
861 848 mxchat_create_url_clicks_table();
862 849
@@ -1082,14 +1069,8 @@
1082 1069 if (version_compare($current_version, '3.1.2', '<')) {
1083 1070 mxchat_migrate_transcripts_charset();
1084 1071 }
1085 1072
1086 - // 3.1.7: Clean up stale shared session email/name entries
1087 - if (version_compare($current_version, '3.1.7', '<')) {
1088 - delete_option('mxchat_email_null');
1089 - delete_option('mxchat_name_null');
1090 - }
1091 -
1092 1073 // Run full activation to ensure everything is up to date
1093 1074 mxchat_activate();
1094 1075
1095 1076 // Run migration functions
@@ -1260,9 +1241,9 @@
1260 1241 // Check if we're upgrading TO 3.0.1 and haven't handled this yet
1261 1242 if (version_compare($current_version, $target_version, '<') && !$update_handled) {
1262 1243 // Check if Pro is activated - only show to Pro users
1263 1244 $license_status = get_option('mxchat_license_status', 'inactive');
1264 - $is_pro = ($license_status === 'active');
1245 + $is_pro = ($license_status === 'active' || $license_status === esc_html__('active', 'mxchat'));
1265 1246
1266 1247 if ($is_pro) {
1267 1248 // Set flag to show the theme migration notification banner
1268 1249 update_option('mxchat_show_theme_migration_notice', true);