Skip to content

Commit 1f5c91a

Browse files
committed
v4.3.25
Signed-off-by: Kev Provance <[email protected]>
1 parent ba10fd3 commit 1f5c91a

File tree

5 files changed

+42
-187
lines changed

5 files changed

+42
-187
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Redux Changelog
22

3-
## 4.3.24.1
4-
* Modified: #3931 - Reworked directory enumeration for `custom_fonts` to avoid potential fatal errors.
3+
## 4.3.25
4+
* Modified: Reworked directory enumeration for `custom_fonts` to avoid potential fatal errors.
55

66
## 4.3.24
77
* Additional work to make `custom_fonts` override old standalone extension version.

readme.txt

Lines changed: 5 additions & 183 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: patterns, templates, blocks, gutenberg, library, editor, page builder
44
Requires at least: 4.0
55
Requires PHP: 7.1
66
Tested up to: 6.1
7-
Stable tag: 4.3.23
7+
Stable tag: 4.3.25
88
License: GPL-3.0+
99
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
1010

@@ -103,7 +103,10 @@ Once Installed and Activated you will be invited to Activate your Redux account.
103103
If you want, you can use the [Gutenberg](https://wordpress.org/plugins/gutenberg/) plugin to get bleeding-edge experiments by the Gutenberg team.
104104

105105
== Changelog ==
106-
= 4.3.23 =
106+
= 4.3.25 =
107+
* Modified: Reworked directory enumeration for `custom_fonts` to avoid potential fatal errors.
108+
109+
= 4.3.24 =
107110
* Additional work to make `custom_fonts` override old standalone extension version.
108111
* Release date: January 20, 2023
109112

@@ -279,187 +282,6 @@ Modified: Tools > Redux Framework screen moved to Settings > Redux
279282
Modified: Redux Templates disabled by default.
280283
Release date: September 21, 2021
281284

282-
= 4.2.14 =
283-
Fixed: Parse error in Import/Export module due to old versions of PHP.
284-
Release date: August 11, 2021
285-
286-
= 4.2.13 =
287-
Fixed: #3822 - Default value function returns string or array to prevent type error.
288-
Modified: #3820 - Better support for Redux embedded in themes.
289-
Modified: `install_plugins` security level now required to install Template blocks that require additional plugins. This was done for security reasons.
290-
Added: New global arg `load_on_cron`. Set to true if you require Redux to run within a cron initiated function.
291-
Removed: URL based Import/Export option due to security concerns. Manual Import/Export features remain.
292-
Removed: Support URL feature due to security issues. Please use WordPress Site Health 'copy to clipboard' compiler to submit system data when reporting issues.
293-
Release date: August 11, 2021
294-
295-
= 4.2.11 =
296-
Fixed: Removed type declarations on core return values to support improperly written third-party extensions.
297-
Fixed: Added shim to prevent errors on functions calls outdated extensions are still using.
298-
Fixed: Removed type declarations on field code to support outdated versions of PHP (PHP 7.4 is the minimum recommendation from WordPress...please update if you are able). [https://wordpress.org/about/requirements](https://wordpress.org/about/requirements).
299-
Fixed: Support URL button kicking back a JavaScript error.
300-
Release date: July 29, 2021
301-
302-
= 4.2.10 =
303-
Fixed: Output on the frontend triggering error.
304-
Fixed: Updated shims to support older extensions not authored by Redux.io
305-
Release date: July 28, 2021
306-
307-
= 4.2.9 =
308-
Fixed: WordPress data class now works properly.
309-
Release date: July 28, 2021
310-
311-
= 4.2.8 =
312-
Redux instances returning null. Saved options now show on the front end.
313-
Release date: July 28, 2021
314-
315-
= 4.2.7 =
316-
Fixed: Options reverting or not saving.
317-
Release date: July 28, 2021
318-
319-
= 4.2.6 =
320-
Fixed: Fatal error if passing null as an option section.
321-
Fixed: Error in connection banner routine.
322-
Release date: July 28, 2021
323-
324-
= 4.2.5 =
325-
Fixed: Type mismatch in Redux Helpers.
326-
Release date: July 28, 2021
327-
328-
= 4.2.4 =
329-
Fixed: Taxonomy WordPress data not handled properly in fields that support WordPress data.
330-
Release date: July 28, 2021
331-
332-
= 4.2.3 =
333-
Fixed: Return type error in Redux templates.
334-
Release date: July 28, 2021
335-
336-
= 4.2.2 =
337-
Fixed: WordPress data options not handling WP_Error properly.
338-
Release date: July 28, 2021
339-
340-
= 4.2.1 =
341-
Fixed: Type mismatch regarding select boxes and callbacks.
342-
Release date: July 27, 2021
343-
344-
= 4.2.0 =
345-
New: Typography features: Top and bottom margins, text-shadow.
346-
New: Media Image Filters (greyscale, sepia, opacity, contrast, invert, blur, saturate, brightness, hue-rotate).
347-
New: Filters (type, reach, angle) for Gradient color field.
348-
New: Box Shadow field.
349-
New: Flyout Submenus: `flyout_submenus` global arg.
350-
New: Alpha color option for color field: `color_alpha` field arg for fields that support color pickers.
351-
Updated: select2 library to 4.1.0.
352-
Updated: readme.txt to conform to wp.org standards.
353-
Fixed: Remove PHP 7.2 syntax to keep older versions of PHP 7 happy.
354-
Fixed: Redux templates not showing on 'page attributes' for some.
355-
Fixed: Additional PHP 8.0 compatibility.
356-
Fixed: Widget screen would not load due to conflict with template library.
357-
Added: WordPress 5.8 compatibility.
358-
Improved: Better Gutenberg block editor detection.
359-
Modified: Redux Pro no longer required for automatic Google font updates.
360-
Modified: Rename Parsedown class for raw field to avoid conflicts with other plugins.
361-
Removed: `async_typography` global arg. Google no longer supports it. Use `font_display` with one of the following `auto|block|swap|fallback|optional`. See: [https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display)
362-
Release date: July 27, 2021
363-
364-
= 4.1.29 =
365-
Fixed: All PHP 7.4 specific syntax backed out. It caused older versions of PHP to report fatal errors.
366-
Fixed: Index error in the image_select field.
367-
Release date: June 29, 2021
368-
369-
= 4.1.28 =
370-
Fixed: Redux templates loading on post types with no block editor.
371-
Fixed: Redux theme checks no longer prevent theme check plugin from functioning.
372-
Fixed: Heatbeat check no longer eats the function if disregarded.
373-
Fixed: Background field image now hides preview image upon removal.
374-
Fixed: RAW field in sample config now works.
375-
Fixed: Helper function is_field_in_use now returns false, instead of null.
376-
Fixed: Palette field rendering improperly.
377-
Fixed: Google font update fail.
378-
Modified: buttonset() jQuery widget deprecated. Replaced with controlgroup().
379-
Modified: Additional JavaScript updates to fix jQuery deprecation notices.
380-
Release date: June 29, 2021
381-
382-
= 4.1.27 =
383-
Fixed: Image select not selecting default value.
384-
Modified: Link color field overridden by theme. Added 'important' arg to the output array to fix. See sample config.
385-
Fixed: Same config not setting footer background in Twenty-twenty theme due to incorrect class.
386-
Fixed: Radio field not displaying text after save/refresh when displaying WordPress data.
387-
Modified: Donation text removed.
388-
Fixed: Link color CSS compiling incorrectly due to late escaping.
389-
390-
= 4.1.26 =
391-
Added: Menu accent introduced in WordPress 5.7.
392-
Updated: ACE Editor 1.4.12.
393-
Updated select2 to support cssContainer.
394-
Fixed: Multiple submenus in metaboxes; the last submenu it cut off.
395-
Fixed: Fatal error: Can't use function return value in write context.
396-
Fixed: PHP 8.0 deprecation warnings.
397-
Fixed: Malformed HTML causing Redux pro alpha color-picker to not render.
398-
Fixed: Improved class checks for Redux Pro.
399-
Fixed: jQuery 3.x deprecation notices.
400-
Fixed: Malformed SCSS.
401-
Release date: March 17, 2021
402-
403-
= 4.1.25 =
404-
Fixed: Erroneous icon on button_set field after WP 5.6 update.
405-
Fixed: Erroneous icon on palette field after WP 5.6 update.
406-
Fixed: PHP error in init_delay function during heartbeat API.
407-
Fixed: Options object field not rendering.
408-
Release date: Jan 21, 2021
409-
410-
= 4.1.24 =
411-
Fixed: Select2 callback fix for select fields.
412-
Added: Shim: empty field_*.php files to fix developers including files improperly.
413-
Fixed: Changed use of ctype_xdigit to account for hosts where it's disabled.
414-
Added: Shim for people using terms data key, but using taxonomies instead of taxonomy.
415-
Fixed: Static call mismatch in redux colors.
416-
Fixed: CSRF security issue with a flipped if conditional. Thanks, @ErwanLR.
417-
Fixed: WordPress 4.6 API warnings.
418-
Fixed: WordPress 4.6 customizer issue where fields not displaying properly.
419-
Fixed: Massive speed improvement to the library.
420-
Fixed: Pro template count error if previously activated and Redux Pro not enabled.
421-
Release date: Dec 12, 2020
422-
423-
= 4.1.23 =
424-
Fixed: Massive speed improvement to the library.
425-
Fixed: Pro template count error if previously activated and Redux Pro not enabled.
426-
Release date: Oct 24, 2020
427-
428-
= 4.1.22 =
429-
Fixed: Menu locations WordPress data object not providing name.
430-
Added: Undefined if menu location is not assigned to a menu.
431-
Fixed: Another import/export edge case.
432-
Fixed: Fix setField API value.
433-
Fixed: Older extension compatibility.
434-
Fixed: Text field error with data/options args not displaying properly.
435-
Fixed: Import/Export now properly respects order of objects. Now using PHP over JS json_encode.
436-
Release date: Oct 23, 2020
437-
438-
= 4.1.21 =
439-
Fixed: Fixed connection banner to hide even if JS is broken by jQuery migrate issue (WP 5.5).
440-
Fixed: Resolved all remaining legacy extension compatibility issues.
441-
Fixed: Custom callback with select field.
442-
Fixed: Typography bug when style was hidden.
443-
Fixed: Issue with text labels.
444-
Fixed: Google fonts HTML validation issues.
445-
Added: Feedback modal.
446-
Fixed: Import logic flaw.
447-
Fixed: Security bug. Thanks, @lenonleite of www.lenonleite.com.br.
448-
Release date: Oct 08, 2020
449-
450-
= 4.1.20 =
451-
Added: Properly adjust the blocked editor page width based on template selected.
452-
Added: Broke out third-party premium plugins for filtering to help with understanding of what comes with Redux Pro.
453-
Added: Update block editor width when selecting a Redux template.
454-
Fixed: Some styling issues with preview modal.
455-
Fixed: Issue where plugin titles were not alphabetical.
456-
Fixed: Disabled third party premium dependencies.
457-
Fixed: Issue where crash would occur when Redux could not write out a file.
458-
Fixed: CSS selectors with HTML entities, like >, were not getting decoded for the passed compiler values.
459-
Fixed: Redux Pro activation issue.
460-
Fixed: Invalid logic causing some extensions not to run.
461-
Release date: Sep 18, 2020
462-
463285
** For a full changelog, see https://github.com/reduxframework/redux-framework/blob/master/CHANGELOG.md **
464286

465287
== Frequently Asked Questions ==

redux-core/framework.php

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

3131
require_once dirname( __FILE__ ) . '/class-redux-core.php';
3232

33-
Redux_Core::$version = '4.3.24.1';
33+
Redux_Core::$version = '4.3.25';
3434
Redux_Core::$redux_path = dirname( __FILE__ );
3535
Redux_Core::instance();
3636

redux-core/inc/extensions/custom_fonts/custom_fonts/class-redux-custom-fonts.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,21 @@
1818
*/
1919
class Redux_Custom_Fonts extends Redux_Field {
2020

21+
/**
22+
* Constructor.
23+
*
24+
* @param array $field Field.
25+
* @param array $value Values.
26+
* @param object $parent ReduxFramework.
27+
*
28+
* @throws ReflectionException Exception.
29+
*/
30+
public function __construct( $field = array(), $value = null, $parent = null ) {
31+
parent::__construct( $field, $value, $parent );
32+
33+
add_action( 'enqueue_block_editor_assets', array( $this, 'block_editor_styles' ), 99 );
34+
}
35+
2136
/**
2237
* Set field defaults.
2338
*/
@@ -204,5 +219,23 @@ public function enqueue() {
204219
);
205220
}
206221
}
222+
223+
/**
224+
* Add styles for block editor.
225+
*
226+
* @return void
227+
*/
228+
public function block_editor_styles(): void {
229+
$class = Redux_Extension_Custom_Fonts::$instance;
230+
231+
if ( ! empty( $class->custom_fonts ) ) {
232+
wp_enqueue_style(
233+
'redux-custom_fonts-css',
234+
$class->upload_url . 'fonts.css',
235+
array(),
236+
time()
237+
);
238+
}
239+
}
207240
}
208241
}

redux-framework.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Plugin URI: http://wordpress.org/plugins/redux-framework
99
* GitHub URI: reduxframework/redux-framework
1010
* Description: Build better sites in WordPress fast!
11-
* Version: 4.3.24.1
11+
* Version: 4.3.25
1212
* Requires at least: 4.0
1313
* Requires PHP: 7.1
1414
* Author: Extendify

0 commit comments

Comments
 (0)