Skip to content

Commit

Permalink
Merge pull request #1032 from brainstormforce/loco-translate-fix
Browse files Browse the repository at this point in the history
Version 2.0.6
  • Loading branch information
sushmak02 authored Jan 1, 2025
2 parents 2639c51 + 2674dde commit 3cf2b6d
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 7 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions header-footer-elementor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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__ ) );
Expand Down
3 changes: 2 additions & 1 deletion inc/class-header-footer-elementor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
12 changes: 11 additions & 1 deletion inc/widgets-manager/class-extensions-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "header-footer-elementor",
"version": "2.0.5",
"version": "2.0.6",
"main": "index.js",
"author": "Nikhil Chavan",
"volta": {
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit 3cf2b6d

Please sign in to comment.