| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Plugin Name: AI Builder (PHP 7.4 test) | |
| 3 | + * Plugin Name: AI Builder | |
| 4 | 4 | * Plugin URI: https://website-ai-builder.com/ |
| 5 | 5 | * Description: This plugin is used to build your website with AI. |
| 6 | - * Version: 2.7.8 | |
| 6 | + * Version: 2.7.10 | |
| 7 | 7 | * Author: enkic |
| 8 | 8 | * Author URI: https://enkicorbin.fr/ |
| 9 | 9 | * License: GPLv2 or later |
| 10 | 10 | * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| @@ -16,9 +16,9 @@ | ||
| 16 | 16 | if (!defined('ABSPATH')) |
| 17 | 17 | exit; |
| 18 | 18 | |
| 19 | 19 | // Définir la version du plugin |
| 20 | -define('AIBUI_VERSION', '2.7.8'); | |
| 20 | +define('AIBUI_VERSION', '2.7.10'); | |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Redirect to AI Builder dashboard after plugin activation. |
| 24 | 24 | */ |
| @@ -656,8 +656,10 @@ | ||
| 656 | 656 | // Active plugins context (max 15) |
| 657 | 657 | 'sitePlugins' => aibui_get_active_plugins_context(), |
| 658 | 658 | // Current WordPress version |
| 659 | 659 | 'wordpressVersion' => aibui_get_wordpress_version(), |
| 660 | + // Shown in the diagnostics line under chat error messages | |
| 661 | + 'pluginVersion' => AIBUI_VERSION, | |
| 660 | 662 | ) |
| 661 | 663 | ); |
| 662 | 664 | |
| 663 | 665 | // Enqueue Multi-Page apply script to support applying generations via URL param |
| @@ -673,9 +675,13 @@ | ||
| 673 | 675 | 'aiBuilderVars', |
| 674 | 676 | array( |
| 675 | 677 | 'ajaxurl' => admin_url('admin-ajax.php'), |
| 676 | 678 | 'nonce' => wp_create_nonce('aibui_nonce'), |
| 677 | - // Keep editor context keys to avoid overriding data needed by chat-widget. | |
| 679 | + // Keep editor context keys to avoid overriding data needed by chat-widget: | |
| 680 | + // this localisation is printed last and replaces the object above. | |
| 681 | + 'adminBaseUrl' => admin_url(), | |
| 682 | + 'pluginUrl' => plugin_dir_url(__FILE__), | |
| 683 | + 'pluginVersion' => AIBUI_VERSION, | |
| 678 | 684 | 'isPatternEditor' => ($hook === 'site-editor.php'), |
| 679 | 685 | 'wooCommerceInstalled' => aibui_is_woocommerce_installed(), |
| 680 | 686 | // Active theme name |
| 681 | 687 | 'activeThemeName' => aibui_get_active_theme_name(), |