Skip to content

Commit d673328

Browse files
authored
Merge pull request #924 from brainstormforce/release-candidate
Build version 1.6.45
2 parents ea99797 + 607dc47 commit d673328

8 files changed

+33
-17
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
**Requires at least:** 4.4
66
**Requires PHP:** 7.4
77
**Tested up to:** 6.7
8-
**Stable tag:** 1.6.44
8+
**Stable tag:** 1.6.45
99
**License:** GPLv2 or later
1010
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -140,6 +140,9 @@ This same applies when you are creating your Header/Footer using this plugin.
140140

141141
## Changelog ##
142142

143+
### 1.6.45 ###
144+
- Improvement: Enhanced the enqueue_scripts method with checks to ensure styles load safely.
145+
143146
### 1.6.44 ###
144147
- Improvement: Compatibility with latest Elementor and Elementor Pro 3.25 version.
145148
- Fix: This update addressed a security bug. Props to Wordfence for privately reporting it to our team. Please make sure you are using the latest version on your website.

header-footer-elementor.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
* Author URI: https://www.brainstormforce.com/
88
* Text Domain: header-footer-elementor
99
* Domain Path: /languages
10-
* Version: 1.6.44
10+
* Version: 1.6.45
1111
* Elementor tested up to: 3.25
1212
* Elementor Pro tested up to: 3.25
1313
*
1414
* @package header-footer-elementor
1515
*/
1616

17-
define( 'HFE_VER', '1.6.44' );
17+
define( 'HFE_VER', '1.6.45' );
1818
define( 'HFE_FILE', __FILE__ );
1919
define( 'HFE_DIR', plugin_dir_path( __FILE__ ) );
2020
define( 'HFE_URL', plugins_url( '/', __FILE__ ) );

inc/class-header-footer-elementor.php

+15-5
Original file line numberDiff line numberDiff line change
@@ -393,12 +393,16 @@ public function enqueue_scripts() {
393393

394394
if ( class_exists( '\Elementor\Plugin' ) ) {
395395
$elementor = \Elementor\Plugin::instance();
396-
$elementor->frontend->enqueue_styles();
396+
if ( method_exists( $elementor->frontend, 'enqueue_styles' ) ) {
397+
$elementor->frontend->enqueue_styles();
398+
}
397399
}
398400

399401
if ( class_exists( '\ElementorPro\Plugin' ) ) {
400402
$elementor_pro = \ElementorPro\Plugin::instance();
401-
$elementor_pro->enqueue_styles();
403+
if ( method_exists( $elementor_pro, 'enqueue_styles' ) ) {
404+
$elementor_pro->enqueue_styles();
405+
}
402406
}
403407

404408
if ( hfe_header_enabled() ) {
@@ -408,7 +412,9 @@ public function enqueue_scripts() {
408412
$css_file = new \Elementor\Post_CSS_File( get_hfe_header_id() );
409413
}
410414

411-
$css_file->enqueue();
415+
if ( isset( $css_file ) ) {
416+
$css_file->enqueue();
417+
}
412418
}
413419

414420
if ( hfe_footer_enabled() ) {
@@ -418,7 +424,9 @@ public function enqueue_scripts() {
418424
$css_file = new \Elementor\Post_CSS_File( get_hfe_footer_id() );
419425
}
420426

421-
$css_file->enqueue();
427+
if ( isset( $css_file ) ) {
428+
$css_file->enqueue();
429+
}
422430
}
423431

424432
if ( hfe_is_before_footer_enabled() ) {
@@ -427,7 +435,9 @@ public function enqueue_scripts() {
427435
} elseif ( class_exists( '\Elementor\Post_CSS_File' ) ) {
428436
$css_file = new \Elementor\Post_CSS_File( hfe_get_before_footer_id() );
429437
}
430-
$css_file->enqueue();
438+
if ( isset( $css_file ) ) {
439+
$css_file->enqueue();
440+
}
431441
}
432442
}
433443

languages/header-footer-elementor.pot

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# This file is distributed under the same license as the Elementor Header & Footer Builder package.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Elementor Header & Footer Builder 1.6.44\n"
5+
"Project-Id-Version: Elementor Header & Footer Builder 1.6.45\n"
66
"Report-Msgid-Bugs-To: "
77
"https://wordpress.org/support/plugin/header-footer-elementor\n"
8-
"POT-Creation-Date: 2024-10-21 06:03:04+00:00\n"
8+
"POT-Creation-Date: 2024-10-28 15:46:42+00:00\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=utf-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
@@ -299,7 +299,7 @@ msgid ""
299299
"Plugin! Click here to %3$sget started. %4$s"
300300
msgstr ""
301301

302-
#: inc/class-header-footer-elementor.php:494
302+
#: inc/class-header-footer-elementor.php:504
303303
#. translators: %s: html tags
304304
msgid "Theme Support"
305305
msgstr ""

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "header-footer-elementor",
3-
"version": "1.6.44",
3+
"version": "1.6.45",
44
"main": "Gruntfile.js",
55
"author": "Nikhil Chavan",
66
"devDependencies": {

readme.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Donate link: https://www.paypal.me/BrainstormForce
55
Requires at least: 4.4
66
Requires PHP: 7.4
77
Tested up to: 6.7
8-
Stable tag: 1.6.44
8+
Stable tag: 1.6.45
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -140,6 +140,9 @@ This same applies when you are creating your Header/Footer using this plugin.
140140

141141
== Changelog ==
142142

143+
= 1.6.45 =
144+
- Improvement: Enhanced the enqueue_scripts method with checks to ensure styles load safely.
145+
143146
= 1.6.44 =
144147
- Improvement: Compatibility with latest Elementor and Elementor Pro 3.25 version.
145148
- Fix: This update addressed a security bug. Props to Wordfence for privately reporting it to our team. Please make sure you are using the latest version on your website.

tests/php/stubs/hfe-stubs.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2878,13 +2878,13 @@ function _is_elementor_installed() {
28782878
* Author URI: https://www.brainstormforce.com/
28792879
* Text Domain: header-footer-elementor
28802880
* Domain Path: /languages
2881-
* Version: 1.6.44
2881+
* Version: 1.6.45
28822882
* Elementor tested up to: 3.25
28832883
* Elementor Pro tested up to: 3.25
28842884
*
28852885
* @package header-footer-elementor
28862886
*/
2887-
\define( 'HFE_VER', '1.6.44' );
2887+
\define( 'HFE_VER', '1.6.45' );
28882888
\define( 'HFE_FILE', __FILE__ );
28892889
\define( 'HFE_DIR', \plugin_dir_path( __FILE__ ) );
28902890
\define( 'HFE_URL', \plugins_url( '/', __FILE__ ) );

0 commit comments

Comments
 (0)