File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
7
7
## Unreleased
8
8
9
+ ## Released
10
+
11
+ ## [ 1.36.2] - 2023-01-11
12
+
9
13
### Changed
10
- - Changed function is_dustpress_ajax from private to public.
14
+ - Function ` is_dustpress_ajax ` from private to public.
15
+
16
+ ### Fixed
17
+ - A compatibility issue with PHP 8.1 on ` get_templates() `
11
18
12
- ## Released
13
19
## [ 1.36.1] - 2022-06-07
14
20
15
21
### Fixed
@@ -18,7 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
18
24
## [ 1.36.0] - 2021-11-30
19
25
20
26
### Fixed
21
- - Fixed rendering bug in ` user-activate.dust ` .
27
+ - Rendering bug in ` user-activate.dust ` .
22
28
23
29
### Added
24
30
- Escaping filters: ` wp_kses_post ` (` |kses ` ), ` esc_attr ` (` |attr ` ), ` esc_html ` (` |html ` ) and ` esc_url ` (` |url ` ) filters added.
Original file line number Diff line number Diff line change 6
6
Author: Miika Arponen & Ville Siltala / Geniem Oy
7
7
Author URI: http://www.geniem.com
8
8
License: GPLv3
9
- Version: 1.36.1
9
+ Version: 1.36.2
10
10
*/
11
11
12
12
final class DustPress {
@@ -1621,6 +1621,10 @@ public function get_templates( $force = false ) {
1621
1621
$ this ->templates = wp_cache_get ( 'dustpress/templates ' );
1622
1622
}
1623
1623
1624
+ if ( $ this ->templates === false ) {
1625
+ $ this ->templates = [];
1626
+ }
1627
+
1624
1628
if ( empty ( $ this ->templates ) || $ force ) {
1625
1629
$ templatepaths = $ this ->get_template_paths ( 'partials ' );
1626
1630
You can’t perform that action at this time.
0 commit comments