Skip to content

Commit 0ed75dc

Browse files
authored
Merge pull request #876 from brainstormforce/release-candidate
Build version 1.6.41
2 parents ab1a7f1 + 8d3f30b commit 0ed75dc

16 files changed

+529
-415
lines changed

README.md

+6-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.6
8-
**Stable tag:** 1.6.40
8+
**Stable tag:** 1.6.41
99
**License:** GPLv2 or later
1010
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
1111

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

141141
## Changelog ##
142142

143+
### 1.6.41 ###
144+
- Improvement: Compatibility with latest Elementor and Elementor Pro 3.24 version.
145+
- Improvement: Implemented widget output caching to enhance page performance.
146+
- Improvement: Updated the deprecated code in codebase.
147+
143148
### 1.6.40 ###
144149
- Improvement: Navigation Menu - The dropdown menu now extends to full width when the navigation menu container is set to full width on smaller screens.
145150
- Fix: Navigation Menu – Console error for undefined property ‘left’.

header-footer-elementor.php

+4-4
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.40
11-
* Elementor tested up to: 3.23
12-
* Elementor Pro tested up to: 3.23
10+
* Version: 1.6.41
11+
* Elementor tested up to: 3.24
12+
* Elementor Pro tested up to: 3.24
1313
*
1414
* @package header-footer-elementor
1515
*/
1616

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

inc/widgets-manager/class-widgets-loader.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Elementor\Plugin;
1515
use Elementor\Utils;
16-
use Elementor\Core\Files\Assets\Files_Upload_Handler;
16+
use Elementor\Core\Files\File_Types\Svg;
1717

1818
defined( 'ABSPATH' ) || exit;
1919

@@ -196,7 +196,7 @@ public function sanitize_uploaded_svg( $file ) {
196196
*/
197197
$svg_handler = Plugin::instance()->assets_manager->get_asset( 'svg-handler' );
198198

199-
if ( Files_Upload_Handler::file_sanitizer_can_run() && ! $svg_handler->sanitize_svg( $file['tmp_name'] ) ) {
199+
if ( Svg::file_sanitizer_can_run() && ! $svg_handler->sanitize_svg( $file['tmp_name'] ) ) {
200200

201201
$file['error'] = esc_html__( 'Invalid SVG Format, file not uploaded for security reasons!', 'header-footer-elementor' );
202202
}

inc/widgets-manager/widgets/class-copyright.php

+13
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,19 @@ public function get_categories() {
8181
return [ 'hfe-widgets' ];
8282
}
8383

84+
/**
85+
* Indicates if the widget's content is dynamic.
86+
*
87+
* This method returns true if the widget's output is dynamic and should not be cached,
88+
* or false if the content is static and can be cached.
89+
*
90+
* @since 1.6.41
91+
* @return bool True for dynamic content, false for static content.
92+
*/
93+
protected function is_dynamic_content(): bool { // phpcs:ignore
94+
return false;
95+
}
96+
8497
/**
8598
* Register Copyright controls.
8699
*

inc/widgets-manager/widgets/class-navigation-menu.php

+14-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,20 @@ public function get_icon() {
9494
public function get_categories() {
9595
return [ 'hfe-widgets' ];
9696
}
97-
97+
98+
/**
99+
* Indicates if the widget's content is dynamic.
100+
*
101+
* This method returns true if the widget's output is dynamic and should not be cached,
102+
* or false if the content is static and can be cached.
103+
*
104+
* @since 1.6.41
105+
* @return bool True for dynamic content, false for static content.
106+
*/
107+
protected function is_dynamic_content(): bool { // phpcs:ignore
108+
return false;
109+
}
110+
98111
/**
99112
* Retrieve the list of scripts the navigation menu depended on.
100113
*

inc/widgets-manager/widgets/class-page-title.php

+13
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,19 @@ public function get_categories() {
8787
return [ 'hfe-widgets' ];
8888
}
8989

90+
/**
91+
* Indicates if the widget's content is dynamic.
92+
*
93+
* This method returns true if the widget's output is dynamic and should not be cached,
94+
* or false if the content is static and can be cached.
95+
*
96+
* @since 1.6.41
97+
* @return bool True for dynamic content, false for static content.
98+
*/
99+
protected function is_dynamic_content(): bool { // phpcs:ignore
100+
return false;
101+
}
102+
90103
/**
91104
* Register Page Title controls.
92105
*

inc/widgets-manager/widgets/class-retina.php

+13
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,19 @@ public function get_categories() {
9090
return [ 'hfe-widgets' ];
9191
}
9292

93+
/**
94+
* Indicates if the widget's content is dynamic.
95+
*
96+
* This method returns true if the widget's output is dynamic and should not be cached,
97+
* or false if the content is static and can be cached.
98+
*
99+
* @since 1.6.41
100+
* @return bool True for dynamic content, false for static content.
101+
*/
102+
protected function is_dynamic_content(): bool { // phpcs:ignore
103+
return false;
104+
}
105+
93106
/**
94107
* Register Retina Logo controls.
95108
*

inc/widgets-manager/widgets/class-search-button.php

+13
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,19 @@ public function get_categories() {
8686
return [ 'hfe-widgets' ];
8787
}
8888

89+
/**
90+
* Indicates if the widget's content is dynamic.
91+
*
92+
* This method returns true if the widget's output is dynamic and should not be cached,
93+
* or false if the content is static and can be cached.
94+
*
95+
* @since 1.6.41
96+
* @return bool True for dynamic content, false for static content.
97+
*/
98+
protected function is_dynamic_content(): bool { // phpcs:ignore
99+
return false;
100+
}
101+
89102
/**
90103
* Retrieve the list of scripts the navigation menu depended on.
91104
*

inc/widgets-manager/widgets/class-site-logo.php

+13
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,19 @@ public function get_categories() {
9292
return [ 'hfe-widgets' ];
9393
}
9494

95+
/**
96+
* Indicates if the widget's content is dynamic.
97+
*
98+
* This method returns true if the widget's output is dynamic and should not be cached,
99+
* or false if the content is static and can be cached.
100+
*
101+
* @since 1.6.41
102+
* @return bool True for dynamic content, false for static content.
103+
*/
104+
protected function is_dynamic_content(): bool { // phpcs:ignore
105+
return false;
106+
}
107+
95108
/**
96109
* Register Site Logo controls.
97110
*

inc/widgets-manager/widgets/class-site-tagline.php

+13
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,19 @@ public function get_categories() {
8484
return [ 'hfe-widgets' ];
8585
}
8686

87+
/**
88+
* Indicates if the widget's content is dynamic.
89+
*
90+
* This method returns true if the widget's output is dynamic and should not be cached,
91+
* or false if the content is static and can be cached.
92+
*
93+
* @since 1.6.41
94+
* @return bool True for dynamic content, false for static content.
95+
*/
96+
protected function is_dynamic_content(): bool { // phpcs:ignore
97+
return false;
98+
}
99+
87100
/**
88101
* Register site tagline controls.
89102
*

inc/widgets-manager/widgets/class-site-title.php

+13
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,19 @@ public function get_categories() {
8686
return [ 'hfe-widgets' ];
8787
}
8888

89+
/**
90+
* Indicates if the widget's content is dynamic.
91+
*
92+
* This method returns true if the widget's output is dynamic and should not be cached,
93+
* or false if the content is static and can be cached.
94+
*
95+
* @since 1.6.41
96+
* @return bool True for dynamic content, false for static content.
97+
*/
98+
protected function is_dynamic_content(): bool { // phpcs:ignore
99+
return false;
100+
}
101+
89102
/**
90103
* Register site title controls.
91104
*

0 commit comments

Comments
 (0)