| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: MxChat |
| 4 | 4 | * Description: AI chatbot for WordPress with OpenAI, Claude, xAI, DeepSeek, live agent, PDF uploads, WooCommerce, and training on website data. |
| 5 | - * Version: 2.0.6 | |
| 5 | + * Version: 2.1.0 | |
| 6 | 6 | * Author: MxChat |
| 7 | 7 | * Author URI: https://mxchat.ai |
| 8 | 8 | * License: GPLv2 or later |
| 9 | 9 | * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| @@ -89,9 +89,9 @@ | ||
| 89 | 89 | // Set default thresholds for existing intents |
| 90 | 90 | $wpdb->query("UPDATE {$intents_table} SET similarity_threshold = 0.85 WHERE similarity_threshold IS NULL"); |
| 91 | 91 | |
| 92 | 92 | // Update plugin version in the database |
| 93 | - update_option('mxchat_plugin_version', '2.0.6'); | |
| 93 | + update_option('mxchat_plugin_version', '2.1.0'); | |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | |
| 97 | 97 | function mxchat_add_missing_columns($table, $column_name, $column_type) { |
| @@ -103,9 +103,9 @@ | ||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | function mxchat_check_for_update() { |
| 106 | 106 | $current_version = get_option('mxchat_plugin_version'); |
| 107 | - $plugin_version = '2.0.6'; // Update with your latest version | |
| 107 | + $plugin_version = '2.1.0'; // Update with your latest version | |
| 108 | 108 | |
| 109 | 109 | if ($current_version !== $plugin_version) { |
| 110 | 110 | mxchat_activate(); // Run the activation script to apply schema changes |
| 111 | 111 | mxchat_migrate_live_agent_status(); // Add migration for live agent status |