Version Description
Fixed: Type mismatch regarding select boxes and callbacks.
Download this release
Release Info
Developer | dovyp |
Plugin | Redux Framework |
Version | 4.2.1 |
Comparing to | |
See all releases |
Code changes from version 4.2.0 to 4.2.1
- readme.txt +6 -3
- redux-core/framework.php +1 -1
- redux-core/inc/classes/class-redux-wordpress-data.php +14 -14
- 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,8 +152,11 @@ If you want, you can use the [Gutenberg](https://wordpress.org/plugins/gutenberg
|
|
152 |
|
153 |
== Changelog ==
|
154 |
|
|
|
|
|
|
|
155 |
= 4.2.0 =
|
156 |
-
* New: Typography features: Top and bottom margins, text
|
157 |
* New: Media Image Filters (greyscale, sepia, opacity, contrast, invert, blur, saturate, brightness, hue-rotate).
|
158 |
* New: Filters (type, reach, angle) for Gradient color field.
|
159 |
* New: Box Shadow field.
|
@@ -162,7 +165,7 @@ If you want, you can use the [Gutenberg](https://wordpress.org/plugins/gutenberg
|
|
162 |
* Updated: select2 library to 4.1.0.
|
163 |
* Updated: readme.txt to conform to wp.org standards.
|
164 |
* Fixed: Remove PHP 7.2 syntax to keep older versions of PHP 7 happy.
|
165 |
-
* Fixed: Redux
|
166 |
* Fixed: Additional PHP 8.0 compatibility.
|
167 |
* Fixed: Widget screen would not load due to conflict with template library.
|
168 |
* Added: WordPress 5.8 compatibility.
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 7.1
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 4.2.1
|
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.1 =
|
156 |
+
Fixed: Type mismatch regarding select boxes and callbacks.
|
157 |
+
|
158 |
= 4.2.0 =
|
159 |
+
* New: Typography features: Top and bottom margins, text-shadow.
|
160 |
* New: Media Image Filters (greyscale, sepia, opacity, contrast, invert, blur, saturate, brightness, hue-rotate).
|
161 |
* New: Filters (type, reach, angle) for Gradient color field.
|
162 |
* New: Box Shadow field.
|
165 |
* Updated: select2 library to 4.1.0.
|
166 |
* Updated: readme.txt to conform to wp.org standards.
|
167 |
* Fixed: Remove PHP 7.2 syntax to keep older versions of PHP 7 happy.
|
168 |
+
* Fixed: Redux templates not showing on 'page attributes' for some.
|
169 |
* Fixed: Additional PHP 8.0 compatibility.
|
170 |
* Fixed: Widget screen would not load due to conflict with template library.
|
171 |
* Added: WordPress 5.8 compatibility.
|
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.1';
|
27 |
Redux_Core::$redux_path = dirname( __FILE__ );
|
28 |
Redux_Core::instance();
|
29 |
|
redux-core/inc/classes/class-redux-wordpress-data.php
CHANGED
@@ -40,14 +40,14 @@ if ( ! class_exists( 'Redux_WordPress_Data', false ) ) {
|
|
40 |
* Get the data.
|
41 |
*
|
42 |
* @param string|array $type Type.
|
43 |
-
* @param array
|
44 |
* @param string $opt_name Opt name.
|
45 |
* @param string|int $current_value Current value.
|
46 |
* @param bool $ajax Tells if this is an AJAX call.
|
47 |
*
|
48 |
* @return array|mixed|string
|
49 |
*/
|
50 |
-
public function get( $type,
|
51 |
$opt_name = $this->opt_name;
|
52 |
|
53 |
// We don't want to run this, it's not a string value. Send it back!
|
@@ -222,13 +222,13 @@ if ( ! class_exists( 'Redux_WordPress_Data', false ) ) {
|
|
222 |
/**
|
223 |
* Fetch the data for a given type.
|
224 |
*
|
225 |
-
* @param string
|
226 |
-
* @param array
|
227 |
-
* @param mixed|array
|
228 |
*
|
229 |
* @return array
|
230 |
*/
|
231 |
-
private function get_data( string $type,
|
232 |
$args = $this->get_arg_defaults( $type, $args );
|
233 |
|
234 |
$opt_name = $this->opt_name;
|
@@ -486,11 +486,11 @@ if ( ! class_exists( 'Redux_WordPress_Data', false ) ) {
|
|
486 |
/**
|
487 |
* Router for translation based on the given post type.
|
488 |
*
|
489 |
-
* @param string
|
490 |
-
* @param mixed|array
|
491 |
-
* @param array
|
492 |
*/
|
493 |
-
private function maybe_get_translation( string $type, &$current_value = '',
|
494 |
switch ( $type ) {
|
495 |
case 'categories':
|
496 |
case 'category':
|
@@ -602,12 +602,12 @@ if ( ! class_exists( 'Redux_WordPress_Data', false ) ) {
|
|
602 |
/**
|
603 |
* Get default arguments for a given data type.
|
604 |
*
|
605 |
-
* @param string
|
606 |
-
* @param array
|
607 |
*
|
608 |
-
* @return array
|
609 |
*/
|
610 |
-
private function get_arg_defaults( string $type,
|
611 |
// In this section we set the default arguments for each data type.
|
612 |
switch ( $type ) {
|
613 |
case 'categories':
|
40 |
* Get the data.
|
41 |
*
|
42 |
* @param string|array $type Type.
|
43 |
+
* @param array|string $args Args.
|
44 |
* @param string $opt_name Opt name.
|
45 |
* @param string|int $current_value Current value.
|
46 |
* @param bool $ajax Tells if this is an AJAX call.
|
47 |
*
|
48 |
* @return array|mixed|string
|
49 |
*/
|
50 |
+
public function get( $type, $args = array(), string $opt_name = '', $current_value = '', bool $ajax = false ) {
|
51 |
$opt_name = $this->opt_name;
|
52 |
|
53 |
// We don't want to run this, it's not a string value. Send it back!
|
222 |
/**
|
223 |
* Fetch the data for a given type.
|
224 |
*
|
225 |
+
* @param string $type The data type we're fetching.
|
226 |
+
* @param array|string $args Arguments to pass.
|
227 |
+
* @param mixed|array $current_value If a current value already set in the database.
|
228 |
*
|
229 |
* @return array
|
230 |
*/
|
231 |
+
private function get_data( string $type, $args, $current_value ): array {
|
232 |
$args = $this->get_arg_defaults( $type, $args );
|
233 |
|
234 |
$opt_name = $this->opt_name;
|
486 |
/**
|
487 |
* Router for translation based on the given post type.
|
488 |
*
|
489 |
+
* @param string $type Type of data request.
|
490 |
+
* @param mixed|array $current_value Current value stored in DB.
|
491 |
+
* @param array|string $args Arguments for the call.
|
492 |
*/
|
493 |
+
private function maybe_get_translation( string $type, &$current_value = '', $args = array() ) {
|
494 |
switch ( $type ) {
|
495 |
case 'categories':
|
496 |
case 'category':
|
602 |
/**
|
603 |
* Get default arguments for a given data type.
|
604 |
*
|
605 |
+
* @param string $type Type of data request.
|
606 |
+
* @param array|string $args Arguments for the call.
|
607 |
*
|
608 |
+
* @return array|string
|
609 |
*/
|
610 |
+
private function get_arg_defaults( string $type, $args = array() ) {
|
611 |
// In this section we set the default arguments for each data type.
|
612 |
switch ( $type ) {
|
613 |
case 'categories':
|
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.1
|
14 |
* Text Domain: redux-framework
|
15 |
* License: GPLv3 or later
|
16 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|