Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit cb1062c

Browse files
authored
Merge pull request #218 from svl-studios/master
4.1.27 fixes.
2 parents 9a2a3bd + b01810a commit cb1062c

17 files changed

+70
-24
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Redux Changelog
22

3+
## 4.1.27
4+
* Fixed: Image select not selecting default value.
5+
* Modified: #209 - Link color field overridden by theme. Added 'important' arg to the output array to fix. See sample config.
6+
* Fixed: #208 - Same config not setting footer background in Twenty-twenty theme due to incorrect class.
7+
* Fixed: #207 - Radio field not displaying text after save/refresh when displaying WordPress data.
8+
* Modified: #210 - Donation text removed.
9+
* Fixed: #206 - Link color CSS compiling incorrectly due to late escaping.
10+
311
## 4.1.26
412
* Added: Menu accent introduced in WordPress 5.7.
513
* Updated: ACE Editor 1.4.12.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reduxframework/redux-framework-4",
3-
"version": "4.1.26",
3+
"version": "4.1.27",
44
"authors": [
55
{
66
"name": "Redux.io",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"main": "gulpfile.js",
44
"name": "redux",
55
"author": "Redux.io + Dōvy Paukstys",
6-
"version": "4.1.26",
6+
"version": "4.1.27",
77
"license": "GPL-3.0-or-later",
88
"repository": {
99
"type": "git",

readme.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: gutenberg, blocks, gutenberg blocks, editor, block, page builder, block ed
55
Requires at least: 4.0
66
Requires PHP: 7.1
77
Tested up to: 5.7.2
8-
Stable tag: 4.1.26
8+
Stable tag: 4.1.27
99
License: GPL-2.0+
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
1111

@@ -154,6 +154,14 @@ If you want, you can use the [Gutenberg](https://wordpress.org/plugins/gutenberg
154154

155155
== Changelog ==
156156

157+
== 4.1.27 ==
158+
* Fixed: Image select not selecting default value.
159+
* Modified: #209 - Link color field overridden by theme. Added 'important' arg to the output array to fix. See sample config.
160+
* Fixed: #208 - Same config not setting footer background in Twenty-twenty theme due to incorrect class.
161+
* Fixed: #207 - Radio field not displaying text after save/refresh when displaying WordPress data.
162+
* Modified: #210 - Donation text removed.
163+
* Fixed: #206 - Link color CSS compiling incorrectly due to late escaping.
164+
157165
== 4.1.26 ==
158166
* Added: Menu accent introduced in WordPress 5.7.
159167
* Updated: ACE Editor 1.4.12.

redux-core/assets/css/redux-fields.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

redux-core/assets/css/redux-fields.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

redux-core/framework.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
require_once dirname( __FILE__ ) . '/class-redux-core.php';
2525

26-
Redux_Core::$version = '4.1.26';
26+
Redux_Core::$version = '4.1.27';
2727
Redux_Core::$redux_path = dirname( __FILE__ );
2828
Redux_Core::instance();
2929

redux-core/inc/classes/class-redux-cdn.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private static function enqueue( $handle, $src_cdn, $deps, $ver, $footer_or_medi
9393
* @param mixed $footer_or_media True or 'all'.
9494
* @param bool $is_script Script or style.
9595
*/
96-
private static function cdn( bool $register, string $handle,string $src_cdn,array $deps,string $ver,?string $footer_or_media,bool $is_script ) {
96+
private static function cdn( bool $register, string $handle, string $src_cdn, array $deps, string $ver, $footer_or_media, bool $is_script ) {
9797
$tran_key = '_style_cdn_is_up';
9898
if ( $is_script ) {
9999
$tran_key = '_script_cdn_is_up';
@@ -167,7 +167,7 @@ private static function cdn( bool $register, string $handle,string $src_cdn,arra
167167
* @param mixed $footer_or_media True or 'all'.
168168
* @param bool $is_script Script or style.
169169
*/
170-
private static function vendor_plugin( bool $register, string $handle, string $src_cdn, array $deps, string $ver, ?string $footer_or_media, bool $is_script ) {
170+
private static function vendor_plugin( bool $register, string $handle, string $src_cdn, array $deps, string $ver, $footer_or_media, bool $is_script ) {
171171
if ( class_exists( 'Redux_VendorURL' ) ) {
172172
$src = Redux_VendorURL::get_url( $handle );
173173

redux-core/inc/classes/class-redux-field.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,13 @@ public function output( $style = '' ) {
259259
$this->field['compiler'] = array( $this->field['compiler'] );
260260
}
261261

262+
if ( isset( $this->field['compiler']['important'] ) ) {
263+
if ( $this->field['compiler']['important'] ) {
264+
$style = str_replace( ';', ' !important;', $style );
265+
}
266+
unset( $this->field['compiler']['important'] );
267+
}
268+
262269
if ( ! empty( $this->field['compiler'] ) && is_array( $this->field['compiler'] ) ) {
263270
$keys = implode( ',', $this->field['compiler'] );
264271
$this->parent->compilerCSS .= $keys . '{' . $style . '}';

redux-core/inc/classes/class-redux-helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1683,7 +1683,7 @@ public static function google_fonts_array( $download = false ) {
16831683

16841684
if ( ! file_exists( $path ) || ( file_exists( $path ) && $download && self::google_fonts_update_needed() ) ) {
16851685
if ( $download ) {
1686-
$url = 'http://api.redux.io/gfonts';
1686+
$url = apply_filter( 'redux/typography/google_fonts/url', 'https://api.redux.io/gfonts' );
16871687

16881688
$request = wp_remote_get(
16891689
$url,

0 commit comments

Comments
 (0)