Header Footer Elementor - Version 1.0.5

Version Description

  • Fix: Correctly check if Elementor actually is active before using its methods. This fixes errors for sites using older versions of PHP where Elementor does not actually get activated.
Download this release

Release Info

Developer Nikschavan
Plugin Icon Header Footer Elementor
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

header-footer-elementor.php CHANGED
@@ -7,12 +7,12 @@
7
  * Author URI: https://www.brainstormforce.com/
8
  * Text Domain: header-footer-elementor
9
  * Domain Path: /languages
10
- * Version: 1.0.4
11
  *
12
  * @package header-footer-elementor
13
  */
14
 
15
- define( 'HFE_VER', '1.0.4' );
16
  define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
17
  define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
18
  define( 'HFE_PATH', plugin_basename( __FILE__ ) );
7
  * Author URI: https://www.brainstormforce.com/
8
  * Text Domain: header-footer-elementor
9
  * Domain Path: /languages
10
+ * Version: 1.0.5
11
  *
12
  * @package header-footer-elementor
13
  */
14
 
15
+ define( 'HFE_VER', '1.0.5' );
16
  define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
17
  define( 'HFE_URL', plugins_url( '/', __FILE__ ) );
18
  define( 'HFE_PATH', plugin_basename( __FILE__ ) );
inc/class-header-footer-elementor.php CHANGED
@@ -30,7 +30,7 @@ class Header_Footer_Elementor {
30
 
31
  $this->template = get_template();
32
 
33
- if ( defined( 'ELEMENTOR_VERSION' ) ) {
34
 
35
  self::$elementor_instance = Elementor\Plugin::instance();
36
 
30
 
31
  $this->template = get_template();
32
 
33
+ if ( defined( 'ELEMENTOR_VERSION' ) && is_callable( 'Elementor\Plugin::instance' ) ) {
34
 
35
  self::$elementor_instance = Elementor\Plugin::instance();
36
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: brainstormforce, Nikschavan
3
  Tags: elementor, header footer builder, header, footer, page builder, template builder, landing page builder, front-end editor
4
  Donate link: https://www.paypal.me/BrainstormForce
5
  Requires at least: 3.6
6
- Tested up to: 4.8.2
7
- Stable tag: 1.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -72,6 +72,9 @@ If you are a theme developer <a href="https://github.com/Nikschavan/header-foote
72
 
73
  == Changelog ==
74
 
 
 
 
75
  = 1.0.4 =
76
  - Improvement: Use Elementor's created instance when rendering the markup for header/footer - Credits <a href="https://github.com/itay9001">itay9001</a>
77
 
3
  Tags: elementor, header footer builder, header, footer, page builder, template builder, landing page builder, front-end editor
4
  Donate link: https://www.paypal.me/BrainstormForce
5
  Requires at least: 3.6
6
+ Tested up to: 4.9
7
+ Stable tag: 1.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
72
 
73
  == Changelog ==
74
 
75
+ = 1.0.5 =
76
+ - Fix: Correctly check if Elementor actually is active before using its methods. This fixes errors for sites using older versions of PHP where Elementor does not actually get activated.
77
+
78
  = 1.0.4 =
79
  - Improvement: Use Elementor's created instance when rendering the markup for header/footer - Credits <a href="https://github.com/itay9001">itay9001</a>
80