| @@ -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.5 | |
| 5 | + * Version: 2.0.8 | |
| 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 |
| @@ -26,9 +26,8 @@ | ||
| 26 | 26 | require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-admin.php'; |
| 27 | 27 | require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-public.php'; |
| 28 | 28 | require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-utils.php'; |
| 29 | 29 | require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-user.php'; |
| 30 | -require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-woocommerce.php'; | |
| 31 | 30 | require_once plugin_dir_path(__FILE__) . 'includes/pdf-parser/alt_autoload.php'; |
| 32 | 31 | require_once plugin_dir_path(__FILE__) . 'includes/class-mxchat-word-handler.php'; |
| 33 | 32 | |
| 34 | 33 | function mxchat_activate() { |
| @@ -90,9 +89,9 @@ | ||
| 90 | 89 | // Set default thresholds for existing intents |
| 91 | 90 | $wpdb->query("UPDATE {$intents_table} SET similarity_threshold = 0.85 WHERE similarity_threshold IS NULL"); |
| 92 | 91 | |
| 93 | 92 | // Update plugin version in the database |
| 94 | - update_option('mxchat_plugin_version', '2.0.5'); | |
| 93 | + update_option('mxchat_plugin_version', '2.0.8'); | |
| 95 | 94 | } |
| 96 | 95 | |
| 97 | 96 | |
| 98 | 97 | function mxchat_add_missing_columns($table, $column_name, $column_type) { |
| @@ -104,9 +103,9 @@ | ||
| 104 | 103 | } |
| 105 | 104 | |
| 106 | 105 | function mxchat_check_for_update() { |
| 107 | 106 | $current_version = get_option('mxchat_plugin_version'); |
| 108 | - $plugin_version = '2.0.5'; // Update with your latest version | |
| 107 | + $plugin_version = '2.0.8'; // Update with your latest version | |
| 109 | 108 | |
| 110 | 109 | if ($current_version !== $plugin_version) { |
| 111 | 110 | mxchat_activate(); // Run the activation script to apply schema changes |
| 112 | 111 | mxchat_migrate_live_agent_status(); // Add migration for live agent status |