Skip to content

Commit ac12149

Browse files
committed
Version 1.36.2
1 parent df1ea75 commit ac12149

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

CHANGELOG.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## Unreleased
88

9+
## Released
10+
11+
## [1.36.2] - 2023-01-11
12+
913
### 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()`
1118

12-
## Released
1319
## [1.36.1] - 2022-06-07
1420

1521
### Fixed
@@ -18,7 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1824
## [1.36.0] - 2021-11-30
1925

2026
### Fixed
21-
- Fixed rendering bug in `user-activate.dust`.
27+
- Rendering bug in `user-activate.dust`.
2228

2329
### Added
2430
- Escaping filters: `wp_kses_post` (`|kses`), `esc_attr` (`|attr`), `esc_html` (`|html`) and `esc_url` (`|url`) filters added.

dustpress.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Author: Miika Arponen & Ville Siltala / Geniem Oy
77
Author URI: http://www.geniem.com
88
License: GPLv3
9-
Version: 1.36.1
9+
Version: 1.36.2
1010
*/
1111

1212
final class DustPress {
@@ -1621,6 +1621,10 @@ public function get_templates( $force = false ) {
16211621
$this->templates = wp_cache_get( 'dustpress/templates' );
16221622
}
16231623

1624+
if ( $this->templates === false ) {
1625+
$this->templates = [];
1626+
}
1627+
16241628
if ( empty( $this->templates ) || $force ) {
16251629
$templatepaths = $this->get_template_paths( 'partials' );
16261630

0 commit comments

Comments
 (0)