Redux Framework - Version 4.2.6

Version Description

Fixed: Fatal error if passing null as an option section. Fixed: Error in connection banner routine.

Download this release

Release Info

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

Code changes from version 4.2.5 to 4.2.6

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.5
8
  License: GPL-3.0+
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
10
 
@@ -152,6 +152,10 @@ If you want, you can use the [Gutenberg](https://wordpress.org/plugins/gutenberg
152
 
153
  == Changelog ==
154
 
 
 
 
 
155
  = 4.2.5 =
156
  Fixed: Type mismatch in Redux Helpers.
157
 
4
  Requires at least: 4.0
5
  Requires PHP: 7.1
6
  Tested up to: 5.8
7
+ Stable tag: 4.2.6
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.6 =
156
+ Fixed: Fatal error if passing null as an option section.
157
+ Fixed: Error in connection banner routine.
158
+
159
  = 4.2.5 =
160
  Fixed: Type mismatch in Redux Helpers.
161
 
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.5';
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.6';
27
  Redux_Core::$redux_path = dirname( __FILE__ );
28
  Redux_Core::instance();
29
 
redux-core/inc/classes/class-redux-api.php CHANGED
@@ -565,7 +565,9 @@ if ( ! class_exists( 'Redux', false ) ) {
565
  Redux_Functions_Ex::record_caller( $opt_name );
566
 
567
  foreach ( $sections as $section ) {
568
- self::set_section( $opt_name, $section );
 
 
569
  }
570
  }
571
 
@@ -658,12 +660,12 @@ if ( ! class_exists( 'Redux', false ) ) {
658
  /**
659
  * Deprecated Sets a single option panel section.
660
  *
661
- * @param string $opt_name Panel opt_name.
662
- * @param array $section Section data.
663
  *
664
  * @deprecated No longer using camelCase naming convention.
665
  */
666
- public static function setSection( string $opt_name = '', array $section = array() ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName
667
  if ( '' !== $opt_name ) {
668
  Redux_Functions_Ex::record_caller( $opt_name );
669
  }
@@ -674,11 +676,11 @@ if ( ! class_exists( 'Redux', false ) ) {
674
  /**
675
  * Sets a single option panel section.
676
  *
677
- * @param string $opt_name Panel opt_name.
678
- * @param array $section Section data.
679
- * @param bool $replace Replaces section instead of creating a new one.
680
  */
681
- public static function set_section( string $opt_name = '', array $section = array(), bool $replace = false ) {
682
  if ( empty( $section ) || '' === $opt_name ) {
683
  return;
684
  }
565
  Redux_Functions_Ex::record_caller( $opt_name );
566
 
567
  foreach ( $sections as $section ) {
568
+ if ( isset( $section ) && ! empty( $section ) ) {
569
+ self::set_section( $opt_name, $section );
570
+ }
571
  }
572
  }
573
 
660
  /**
661
  * Deprecated Sets a single option panel section.
662
  *
663
+ * @param string $opt_name Panel opt_name.
664
+ * @param array|null $section Section data.
665
  *
666
  * @deprecated No longer using camelCase naming convention.
667
  */
668
+ public static function setSection( string $opt_name = '', ?array $section = array() ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName
669
  if ( '' !== $opt_name ) {
670
  Redux_Functions_Ex::record_caller( $opt_name );
671
  }
676
  /**
677
  * Sets a single option panel section.
678
  *
679
+ * @param string $opt_name Panel opt_name.
680
+ * @param array|null $section Section data.
681
+ * @param bool $replace Replaces section instead of creating a new one.
682
  */
683
+ public static function set_section( string $opt_name = '', ?array $section = array(), bool $replace = false ) {
684
  if ( empty( $section ) || '' === $opt_name ) {
685
  return;
686
  }
redux-core/inc/classes/class-redux-connection-banner.php CHANGED
@@ -147,11 +147,11 @@ if ( ! class_exists( 'Redux_Connection_Banner', false ) ) {
147
  /**
148
  * AJAX callback for dismissing the notice.
149
  *
150
- * @param string $admin_body_class Class string.
151
  *
152
  * @return string
153
  */
154
- public function admin_body_class( string $admin_body_class = '' ): string {
155
  $classes = explode( ' ', trim( $admin_body_class ) );
156
 
157
  $classes[] = false ? 'redux-connected' : 'redux-disconnected';
147
  /**
148
  * AJAX callback for dismissing the notice.
149
  *
150
+ * @param string|null $admin_body_class Class string.
151
  *
152
  * @return string
153
  */
154
+ public function admin_body_class( ?string $admin_body_class = '' ): string {
155
  $classes = explode( ' ', trim( $admin_body_class ) );
156
 
157
  $classes[] = false ? 'redux-connected' : 'redux-disconnected';
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.5
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.6
14
  * Text Domain: redux-framework
15
  * License: GPLv3 or later
16
  * License URI: http://www.gnu.org/licenses/gpl-3.0.txt