From 646170e565bccc8a6f2f0b49a79e40e4e86c5cee Mon Sep 17 00:00:00 2001 From: Sushma Kure Date: Tue, 31 Dec 2024 12:17:04 +0530 Subject: [PATCH 1/3] Fix: Load text domain issue when Loco Translate plugin is active --- inc/class-header-footer-elementor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/class-header-footer-elementor.php b/inc/class-header-footer-elementor.php index 9524ca05..e798d64a 100644 --- a/inc/class-header-footer-elementor.php +++ b/inc/class-header-footer-elementor.php @@ -65,7 +65,8 @@ public function __construct() { self::$elementor_instance = Elementor\Plugin::instance(); $this->includes(); - $this->load_textdomain(); + + add_action( 'init', [ $this, 'load_textdomain' ] ); add_filter( 'elementor/admin-top-bar/is-active', From ade400abd153efc181aaf14922ac79cbb3b18338 Mon Sep 17 00:00:00 2001 From: Sushma Kure Date: Tue, 31 Dec 2024 12:19:25 +0530 Subject: [PATCH 2/3] Updated changelog and version --- README.md | 5 ++++- header-footer-elementor.php | 4 ++-- package.json | 2 +- readme.txt | 5 ++++- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f24ca766..8ddc0f48 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ **Requires at least:** 5.0 **Tested up to:** 6.7.1 **Requires PHP:** 7.4 -**Stable tag:** 2.0.5 +**Stable tag:** 2.0.6 **License:** GPLv2 or later **License URI:** https://www.gnu.org/licenses/gpl-2.0.html @@ -129,6 +129,9 @@ To access the advanced features and premium widgets, you’ll need to upgrade to ## Changelog ## +### 2.0.6 ### +- Fix: Load text domain PHP warning when Loco Translate plugin is active. + ### 2.0.5 ### - Fix: Conflict with pro version update notice. diff --git a/header-footer-elementor.php b/header-footer-elementor.php index ccaa8063..d0bb8a4f 100644 --- a/header-footer-elementor.php +++ b/header-footer-elementor.php @@ -7,14 +7,14 @@ * Author URI: https://www.brainstormforce.com/ * Text Domain: header-footer-elementor * Domain Path: /languages - * Version: 2.0.5 + * Version: 2.0.6 * Elementor tested up to: 3.26 * Elementor Pro tested up to: 3.26 * * @package header-footer-elementor */ -define( 'HFE_VER', '2.0.5' ); +define( 'HFE_VER', '2.0.6' ); define( 'HFE_FILE', __FILE__ ); define( 'HFE_DIR', plugin_dir_path( __FILE__ ) ); define( 'HFE_URL', plugins_url( '/', __FILE__ ) ); diff --git a/package.json b/package.json index b7affe73..c01f7f7b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "header-footer-elementor", - "version": "2.0.5", + "version": "2.0.6", "main": "index.js", "author": "Nikhil Chavan", "volta": { diff --git a/readme.txt b/readme.txt index cf49e203..df30bef4 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: elementor, header footer builder, widgets, header template, footer templat Requires at least: 5.0 Tested up to: 6.7.1 Requires PHP: 7.4 -Stable tag: 2.0.5 +Stable tag: 2.0.6 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -129,6 +129,9 @@ To access the advanced features and premium widgets, you’ll need to upgrade to == Changelog == += 2.0.6 = +- Fix: Load text domain PHP warning when Loco Translate plugin is active. + = 2.0.5 = - Fix: Conflict with pro version update notice. From 2674dde8d697d23428365fcd18634363298e5056 Mon Sep 17 00:00:00 2001 From: Sushma Kure Date: Tue, 31 Dec 2024 18:14:48 +0530 Subject: [PATCH 3/3] Fix: Loco translate conflict --- inc/widgets-manager/class-extensions-loader.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/inc/widgets-manager/class-extensions-loader.php b/inc/widgets-manager/class-extensions-loader.php index 1fd0388d..181ccccb 100644 --- a/inc/widgets-manager/class-extensions-loader.php +++ b/inc/widgets-manager/class-extensions-loader.php @@ -51,8 +51,18 @@ public static function instance() { */ private function __construct() { - $this->include_extensions_files(); + add_action( 'elementor/init', [ $this, 'elementor_init' ] ); + + } + /** + * Elementor Init. + * + * @since x.x.x + */ + public function elementor_init() { + + $this->include_extensions_files(); } /**