Skip to content

Commit cbff608

Browse files
committed
Return type error in Redux templates. Ver bump.
Signed-off-by: Kevin Provance <[email protected]>
1 parent 0dddb7a commit cbff608

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Redux Changelog
22

3+
## 4.2.3
4+
* Fixed: Return type error in Redux templates.
5+
36
## 4.2.2
47
* Fixed: WordPress data options not handling WP_Error properly.
58

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"main": "gulpfile.js",
44
"name": "redux",
55
"author": "Redux.io",
6-
"version": "4.2.0",
6+
"version": "4.2.2",
77
"license": "GPL-3.0-or-later",
88
"repository": {
99
"type": "git",

readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ If you want, you can use the [Gutenberg](https://wordpress.org/plugins/gutenberg
152152

153153
== Changelog ==
154154

155+
= 4.2.3 =
156+
Fixed: Return type error in Redux templates.
157+
155158
= 4.2.2 =
156159
Fixed: WordPress data options not handling WP_Error properly.
157160

redux-core/framework.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
require_once dirname( __FILE__ ) . '/class-redux-core.php';
2525

26-
Redux_Core::$version = '4.2.2';
26+
Redux_Core::$version = '4.2.3';
2727
Redux_Core::$redux_path = dirname( __FILE__ );
2828
Redux_Core::instance();
2929

redux-framework.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Description: Build better sites in WordPress fast
1111
* Author: Redux.io
1212
* Author URI: http://redux.io
13-
* Version: 4.2.2
13+
* Version: 4.2.3
1414
* Text Domain: redux-framework
1515
* License: GPLv3 or later
1616
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt

redux-templates/classes/class-templates.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ public function __construct() {
5050
// Override the default content-width when using Redux templates so the template doesn't look like crao.
5151
add_action( 'wp', array( $this, 'modify_template_content_width' ) );
5252

53-
// Add ReduxTemplates supported Post type in page template.
53+
// Add ReduxTemplates supported Post types in page template.
5454
$post_types = get_post_types( array(), 'object' );
5555

5656
if ( ! empty( $post_types ) ) {
5757
foreach ( $post_types as $post_type ) {
58-
if ( isset( $post_type->name ) && isset($post_type->show_in_rest) && $post_type->show_in_rest === true ) {
58+
if ( isset( $post_type->name ) && isset( $post_type->show_in_rest ) && true === $post_type->show_in_rest ) {
5959
add_filter( "theme_{$post_type->name}_templates", array( $this, 'add_templates' ) );
6060
}
6161
}
@@ -68,12 +68,12 @@ public function __construct() {
6868
/**
6969
* Add the redux-template class to the admin body if a redux-templates page type is selected.
7070
*
71-
* @param string $classes Classes string for admin panel.
71+
* @param string|null $classes Classes string for admin panel.
7272
*
73+
* @return string|null
7374
* @since 4.1.19
74-
* @return string
7575
*/
76-
public function add_body_class( $classes ): string {
76+
public function add_body_class( ?string $classes ): ?string {
7777
global $post;
7878

7979
$screen = get_current_screen();

0 commit comments

Comments
 (0)