Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EPS-971: Load text domain during init action to prevent early translation loading error. #1022

Closed
wants to merge 12 commits into from
Binary file modified .wordpress-org/screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 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.4
**Stable tag:** 2.0.5
**License:** GPLv2 or later
**License URI:** https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -129,6 +129,12 @@ To access the advanced features and premium widgets, you’ll need to upgrade to

## Changelog ##

### 2.0.5.1 ###
- Fix: Load text domain during init action to prevent early translation loading error.

### 2.0.5 ###
- Fix: Conflict with pro version update notice.

### 2.0.4 ###
- Improvement: Compatibility with latest Elementor and Elementor Pro 3.26 version.
- Improvement: Added a navigation bar to the Header and Footer Builder page to improve usability and navigation.
Expand Down
6 changes: 3 additions & 3 deletions header-footer-elementor.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?php
/**
* Plugin Name: Ultimate Addons for Elementor
* Plugin Name: Ultimate Addons for Elementor Lite
* Plugin URI: https://wordpress.org/plugins/header-footer-elementor/
* Description: Formerly known as "Elementor Header & Footer Builder", this powerful plugin allows you to create custom headers and footers with Elementor and display them in selected locations. You can also create custom Elementor blocks and place them anywhere on your website using a shortcode.
* Author: Brainstorm Force
* Author URI: https://www.brainstormforce.com/
* Text Domain: header-footer-elementor
* Domain Path: /languages
* Version: 2.0.4
* Version: 2.0.5
* Elementor tested up to: 3.26
* Elementor Pro tested up to: 3.26
*
* @package header-footer-elementor
*/

define( 'HFE_VER', '2.0.4' );
define( 'HFE_VER', '2.0.5' );
define( 'HFE_FILE', __FILE__ );
define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
Expand Down
4 changes: 3 additions & 1 deletion inc/class-header-footer-elementor.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ public function __construct() {
self::$elementor_instance = Elementor\Plugin::instance();

$this->includes();
$this->load_textdomain();
// $this->load_textdomain();
add_action( 'init', [ $this, 'load_textdomain' ] );


add_filter(
'elementor/admin-top-bar/is-active',
Expand Down
2 changes: 1 addition & 1 deletion inc/class-hfe-rollback.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ protected function upgrade() {
'url' => 'update.php?action=upgrade-plugin&plugin=' . rawurlencode( $this->plugin_name ),
'plugin' => $this->plugin_name,
'nonce' => 'upgrade-plugin_' . $this->plugin_name,
'title' => __( 'Ultimate Addons for Elementor <p>Rollback to Previous Version</p>', 'header-footer-elementor' ),
'title' => __( 'Ultimate Addons for Elementor Lite <p>Rollback to Previous Version</p>', 'header-footer-elementor' ),
];

$this->print_inline_style();
Expand Down
3 changes: 2 additions & 1 deletion inc/widgets-manager/class-extensions-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public static function instance() {
*/
private function __construct() {

$this->include_extensions_files();
// $this->include_extensions_files();
add_action( '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.4",
"version": "2.0.5",
"main": "index.js",
"author": "Nikhil Chavan",
"volta": {
Expand Down
8 changes: 7 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.4
Stable tag: 2.0.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -129,6 +129,12 @@ To access the advanced features and premium widgets, you’ll need to upgrade to

== Changelog ==

= 2.0.5.1 =
- Fix: Load text domain during init action to prevent early translation loading error.

= 2.0.5 =
- Fix: Conflict with pro version update notice.

= 2.0.4 =
- Improvement: Compatibility with latest Elementor and Elementor Pro 3.26 version.
- Improvement: Added a navigation bar to the Header and Footer Builder page to improve usability and navigation.
Expand Down