Redux Framework - Version 4.2.3

Version Description

Fixed: Return type error in Redux templates.

Download this release

Release Info

Developer dovyp
Plugin Icon 128x128 Redux Framework
Version 4.2.3
Comparing to
See all releases

Code changes from version 4.2.2 to 4.2.3

readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: gutenberg, blocks, gutenberg blocks, editor, block, page builder, block ed
4
  Requires at least: 4.0
5
  Requires PHP: 7.1
6
  Tested up to: 5.8
7
- Stable tag: 4.2.2
8
  License: GPL-3.0+
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
10
 
@@ -152,6 +152,9 @@ If you want, you can use the [Gutenberg](https://wordpress.org/plugins/gutenberg
152
 
153
  == Changelog ==
154
 
 
 
 
155
  = 4.2.2 =
156
  Fixed: WordPress data options not handling WP_Error properly.
157
 
4
  Requires at least: 4.0
5
  Requires PHP: 7.1
6
  Tested up to: 5.8
7
+ Stable tag: 4.2.3
8
  License: GPL-3.0+
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
10
 
152
 
153
  == Changelog ==
154
 
155
+ = 4.2.3 =
156
+ Fixed: Return type error in Redux templates.
157
+
158
  = 4.2.2 =
159
  Fixed: WordPress data options not handling WP_Error properly.
160
 
redux-core/framework.php CHANGED
@@ -23,7 +23,7 @@ defined( 'ABSPATH' ) || exit;
23
 
24
  require_once dirname( __FILE__ ) . '/class-redux-core.php';
25
 
26
- Redux_Core::$version = '4.2.2';
27
  Redux_Core::$redux_path = dirname( __FILE__ );
28
  Redux_Core::instance();
29
 
23
 
24
  require_once dirname( __FILE__ ) . '/class-redux-core.php';
25
 
26
+ Redux_Core::$version = '4.2.3';
27
  Redux_Core::$redux_path = dirname( __FILE__ );
28
  Redux_Core::instance();
29
 
redux-framework.php CHANGED
@@ -10,7 +10,7 @@
10
  * Description: Build better sites in WordPress fast
11
  * Author: Redux.io
12
  * Author URI: http://redux.io
13
- * Version: 4.2.2
14
  * Text Domain: redux-framework
15
  * License: GPLv3 or later
16
  * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
10
  * Description: Build better sites in WordPress fast
11
  * Author: Redux.io
12
  * Author URI: http://redux.io
13
+ * Version: 4.2.3
14
  * Text Domain: redux-framework
15
  * License: GPLv3 or later
16
  * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
redux-templates/classes/class-templates.php CHANGED
@@ -50,12 +50,12 @@ class Templates {
50
  // Override the default content-width when using Redux templates so the template doesn't look like crao.
51
  add_action( 'wp', array( $this, 'modify_template_content_width' ) );
52
 
53
- // Add ReduxTemplates supported Post type in page template.
54
  $post_types = get_post_types( array(), 'object' );
55
 
56
  if ( ! empty( $post_types ) ) {
57
  foreach ( $post_types as $post_type ) {
58
- if ( isset( $post_type->name ) && isset($post_type->show_in_rest) && $post_type->show_in_rest === true ) {
59
  add_filter( "theme_{$post_type->name}_templates", array( $this, 'add_templates' ) );
60
  }
61
  }
@@ -68,12 +68,12 @@ class Templates {
68
  /**
69
  * Add the redux-template class to the admin body if a redux-templates page type is selected.
70
  *
71
- * @param string $classes Classes string for admin panel.
72
  *
 
73
  * @since 4.1.19
74
- * @return string
75
  */
76
- public function add_body_class( $classes ): string {
77
  global $post;
78
 
79
  $screen = get_current_screen();
50
  // Override the default content-width when using Redux templates so the template doesn't look like crao.
51
  add_action( 'wp', array( $this, 'modify_template_content_width' ) );
52
 
53
+ // Add ReduxTemplates supported Post types in page template.
54
  $post_types = get_post_types( array(), 'object' );
55
 
56
  if ( ! empty( $post_types ) ) {
57
  foreach ( $post_types as $post_type ) {
58
+ if ( isset( $post_type->name ) && isset( $post_type->show_in_rest ) && true === $post_type->show_in_rest ) {
59
  add_filter( "theme_{$post_type->name}_templates", array( $this, 'add_templates' ) );
60
  }
61
  }
68
  /**
69
  * Add the redux-template class to the admin body if a redux-templates page type is selected.
70
  *
71
+ * @param string|null $classes Classes string for admin panel.
72
  *
73
+ * @return string|null
74
  * @since 4.1.19
 
75
  */
76
+ public function add_body_class( ?string $classes ): ?string {
77
  global $post;
78
 
79
  $screen = get_current_screen();