Version Description
Fixed: WordPress data options not handling WP_Error properly.
Download this release
Release Info
Developer | dovyp |
Plugin | Redux Framework |
Version | 4.2.2 |
Comparing to | |
See all releases |
Code changes from version 4.2.1 to 4.2.2
- readme.txt +4 -1
- redux-core/framework.php +1 -1
- redux-core/inc/classes/class-redux-wordpress-data.php +6 -8
- redux-framework.php +1 -1
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.
|
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.1 =
|
156 |
Fixed: Type mismatch regarding select boxes and callbacks.
|
157 |
|
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 |
|
153 |
== Changelog ==
|
154 |
|
155 |
+
= 4.2.2 =
|
156 |
+
Fixed: WordPress data options not handling WP_Error properly.
|
157 |
+
|
158 |
= 4.2.1 =
|
159 |
Fixed: Type mismatch regarding select boxes and callbacks.
|
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.
|
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.2';
|
27 |
Redux_Core::$redux_path = dirname( __FILE__ );
|
28 |
Redux_Core::instance();
|
29 |
|
redux-core/inc/classes/class-redux-wordpress-data.php
CHANGED
@@ -142,15 +142,15 @@ if ( ! class_exists( 'Redux_WordPress_Data', false ) ) {
|
|
142 |
/**
|
143 |
* Process the results into a proper array, fetching the data elements needed for each data type.
|
144 |
*
|
145 |
-
* @param array
|
146 |
-
* @param string|bool
|
147 |
-
* @param string|bool
|
148 |
-
* @param bool
|
149 |
-
* @param string|bool
|
150 |
*
|
151 |
* @return array
|
152 |
*/
|
153 |
-
private function process_results(
|
154 |
$data = array();
|
155 |
if ( ! empty( $results ) && ! is_a( $results, 'WP_Error' ) ) {
|
156 |
foreach ( $results as $k => $v ) {
|
@@ -684,7 +684,5 @@ if ( ! class_exists( 'Redux_WordPress_Data', false ) ) {
|
|
684 |
|
685 |
return $args;
|
686 |
}
|
687 |
-
|
688 |
-
|
689 |
}
|
690 |
}
|
142 |
/**
|
143 |
* Process the results into a proper array, fetching the data elements needed for each data type.
|
144 |
*
|
145 |
+
* @param array|WP_Error $results Results to process in the data array.
|
146 |
+
* @param string|bool $id_key Key on object/array that represents the ID.
|
147 |
+
* @param string|bool $name_key Key on object/array that represents the name/text.
|
148 |
+
* @param bool $add_key If true, the display key will appear in the text.
|
149 |
+
* @param string|bool $secondary_key If a data type you'd rather display a different ID as the display key.
|
150 |
*
|
151 |
* @return array
|
152 |
*/
|
153 |
+
private function process_results( $results = array(), $id_key = '', $name_key = '', bool $add_key = true, $secondary_key = 'slug' ): array {
|
154 |
$data = array();
|
155 |
if ( ! empty( $results ) && ! is_a( $results, 'WP_Error' ) ) {
|
156 |
foreach ( $results as $k => $v ) {
|
684 |
|
685 |
return $args;
|
686 |
}
|
|
|
|
|
687 |
}
|
688 |
}
|
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.
|
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.2
|
14 |
* Text Domain: redux-framework
|
15 |
* License: GPLv3 or later
|
16 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|