Redux Framework - Version 4.2.5

Version Description

Fixed: Type mismatch in Redux Helpers.

Download this release

Release Info

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

Code changes from version 4.2.4 to 4.2.5

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.4
8
  License: GPL-3.0+
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
10
 
@@ -152,7 +152,10 @@ If you want, you can use the [Gutenberg](https://wordpress.org/plugins/gutenberg
152
 
153
  == Changelog ==
154
 
155
- - 4.2.4 =
 
 
 
156
  Fixed: Taxonomy WordPress data not handled properly in fields that support WordPress data.
157
 
158
  = 4.2.3 =
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
 
153
  == Changelog ==
154
 
155
+ = 4.2.5 =
156
+ Fixed: Type mismatch in Redux Helpers.
157
+
158
+ = 4.2.4 =
159
  Fixed: Taxonomy WordPress data not handled properly in fields that support WordPress data.
160
 
161
  = 4.2.3 =
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.4';
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.5';
27
  Redux_Core::$redux_path = dirname( __FILE__ );
28
  Redux_Core::instance();
29
 
redux-core/inc/classes/class-redux-helpers.php CHANGED
@@ -907,10 +907,11 @@ if ( ! class_exists( 'Redux_Helpers', false ) ) {
907
  *
908
  * @param mixed $var String to convert to true boolean.
909
  *
910
- * @return string::make_bool_str( $var )
 
911
  * @deprecated No longer using camelCase naming convention.
912
  */
913
- public static function makeBoolStr( $var ): string { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName
914
  _deprecated_function( __CLASS__ . '::' . __FUNCTION__, 'Redux 4.0.0', 'Redux_Instances::make_bool_str( $var )' );
915
 
916
  return self::make_bool_str( $var );
@@ -921,9 +922,9 @@ if ( ! class_exists( 'Redux_Helpers', false ) ) {
921
  *
922
  * @param mixed $var true|false to convert.
923
  *
924
- * @return string
925
  */
926
- public static function make_bool_str( $var ): string {
927
  if ( false === $var || 'false' === $var || 0 === $var || '0' === $var || '' === $var || empty( $var ) ) {
928
  return 'false';
929
  } elseif ( true === $var || 'true' === $var || 1 === $var || '1' === $var ) {
907
  *
908
  * @param mixed $var String to convert to true boolean.
909
  *
910
+ * @return mixed|array
911
+ *
912
  * @deprecated No longer using camelCase naming convention.
913
  */
914
+ public static function makeBoolStr( $var ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName
915
  _deprecated_function( __CLASS__ . '::' . __FUNCTION__, 'Redux 4.0.0', 'Redux_Instances::make_bool_str( $var )' );
916
 
917
  return self::make_bool_str( $var );
922
  *
923
  * @param mixed $var true|false to convert.
924
  *
925
+ * @return mixed|array
926
  */
927
+ public static function make_bool_str( $var ) {
928
  if ( false === $var || 'false' === $var || 0 === $var || '0' === $var || '' === $var || empty( $var ) ) {
929
  return 'false';
930
  } elseif ( true === $var || 'true' === $var || 1 === $var || '1' === $var ) {
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.4
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.5
14
  * Text Domain: redux-framework
15
  * License: GPLv3 or later
16
  * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
sample/sections/select-fields/select.php CHANGED
@@ -133,7 +133,7 @@ Redux::set_section(
133
  array(
134
  'id' => 'opt-multi-select-tags',
135
  'type' => 'select',
136
- 'data' => 'tags',
137
  'multi' => true,
138
  'title' => esc_html__( 'Tags Multi Select Option', 'your-textdomain-here' ),
139
  'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
133
  array(
134
  'id' => 'opt-multi-select-tags',
135
  'type' => 'select',
136
+ 'data' => 'terms',
137
  'multi' => true,
138
  'title' => esc_html__( 'Tags Multi Select Option', 'your-textdomain-here' ),
139
  'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),