diff --git a/changelog.md b/changelog.md index deba86e6..06e88eb1 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Changelog +## 6.0.6 (2024-02-20) +* Fix "Failed to initialize plugin" error in Elementor + ## 6.0.5 (2024-01-19) * Fixed not being able to add a contact form in classic editor diff --git a/package-lock.json b/package-lock.json index 22720197..d8e09fc5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "recras-wordpress-plugin", - "version": "6.0.5", + "version": "6.0.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "recras-wordpress-plugin", - "version": "6.0.5", + "version": "6.0.6", "license": "MIT", "devDependencies": { "po2json": "1.0.0-beta-3" diff --git a/package.json b/package.json index ffaca065..c2e229a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "recras-wordpress-plugin", - "version": "6.0.5", + "version": "6.0.6", "description": "Recras WordPress plugin", "main": "index.js", "directories": { diff --git a/readme.txt b/readme.txt index 3c80348c..5223a0ae 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: zanderz Tags: recras, recreation, reservation, booking, voucher Tested up to: 6.4 -Stable tag: 6.0.5 +Stable tag: 6.0.6 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -80,6 +80,9 @@ No. "Must use" plugins don't appear in the update notifications nor show their u == Changelog == += 6.0.6 = +* Fix "Failed to initialize plugin" error in Elementor + = 6.0.5 = * Fixed not being able to add a contact form in classic editor @@ -99,18 +102,10 @@ No. "Must use" plugins don't appear in the update notifications nor show their u * Removed support for Composer Installers * Updated "Tested up to" version to 6.4 -= 5.5.2 = -* **No functional changes** -* Updated "Tested up to" version to 6.3 -* **Deprecation notice**: we plan on removing support for Composer Installers in version 6.0 of the plugin. Please let us know if you use this to install our plugin! - -= 5.5.1 = -* Fix "previous/next month" not being visible in a book process when using Elementor - -= 5.5.0 = += 5.5 (highlights) = * Make online booking of packages look better on narrow pages on large screens (i.e. desktop) -* Gutenberg contact form widget: properly show allowed packages -* Add option to fix BP date picker styling +* Various fixes, mostly related to book processes +* Updated "Tested up to" version to 6.3 * Plugin now requires PHP 7.2 or higher = 5.4 (highlights) = @@ -120,10 +115,6 @@ No. "Must use" plugins don't appear in the update notifications nor show their u * Allow initial value in first widget of a book process, when the first widget is "package selection". * Bugfixes -= 5.2 (highlights) = -* It is now possible to integrate multiple book processes on one page -* Small bugfixes - = Older versions = See [the full changelog](https://github.com/Recras/recras-wordpress-plugin/blob/master/changelog.md) for older versions. diff --git a/recras-wordpress-plugin.php b/recras-wordpress-plugin.php index f12de041..3ad6971b 100644 --- a/recras-wordpress-plugin.php +++ b/recras-wordpress-plugin.php @@ -2,7 +2,7 @@ /* Plugin Name: Recras WordPress Plugin Plugin URI: https://www.recras.nl/ -Version: 6.0.5 +Version: 6.0.6 Description: Easily integrate your Recras data into your own site Requires at least: 6.2 Requires PHP: 7.2.0 diff --git a/src/Plugin.php b/src/Plugin.php index fb478c40..720c99c0 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -48,6 +48,8 @@ public function __construct() // Load scripts add_action('admin_enqueue_scripts', [$this, 'loadAdminScripts']); add_action('wp_enqueue_scripts', [$this, 'loadScripts']); + // Editing a page with Elementor makes WP think it's not in admin mode + add_action('elementor/editor/before_enqueue_scripts', [$this, 'loadAdminScripts']); // Clear caches add_action('admin_post_clear_recras_cache', [$this, 'clearCache']);