Version Description
- Fix: Headers already sent warning in customizer.
Download this release
Release Info
Developer | brainstormworg |
Plugin | Custom Fonts |
Version | 1.3.3 |
Comparing to | |
See all releases |
Code changes from version 1.3.2 to 1.3.3
- classes/class-bsf-custom-fonts-render.php +12 -3
- custom-fonts.php +2 -2
- readme.txt +5 -2
classes/class-bsf-custom-fonts-render.php
CHANGED
@@ -125,9 +125,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
|
|
125 |
|
126 |
// Add font files style.
|
127 |
add_action( 'wp_head', array( $this, 'add_style' ) );
|
128 |
-
|
129 |
-
add_action( 'enqueue_block_assets', array( $this, 'add_style' ) );
|
130 |
-
}
|
131 |
|
132 |
add_filter( 'elementor/fonts/groups', array( $this, 'elementor_group' ) );
|
133 |
add_filter( 'elementor/fonts/additional_fonts', array( $this, 'add_elementor_fonts' ) );
|
@@ -218,6 +216,17 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
|
|
218 |
return array_merge( $bb_fonts, $custom_fonts );
|
219 |
}
|
220 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
/**
|
222 |
* Enqueue Scripts
|
223 |
*
|
125 |
|
126 |
// Add font files style.
|
127 |
add_action( 'wp_head', array( $this, 'add_style' ) );
|
128 |
+
add_action( 'init', array( $this, 'add_block_assets_style' ) );
|
|
|
|
|
129 |
|
130 |
add_filter( 'elementor/fonts/groups', array( $this, 'elementor_group' ) );
|
131 |
add_filter( 'elementor/fonts/additional_fonts', array( $this, 'add_elementor_fonts' ) );
|
216 |
return array_merge( $bb_fonts, $custom_fonts );
|
217 |
}
|
218 |
|
219 |
+
/**
|
220 |
+
* Enqueue Block Assets Scripts
|
221 |
+
*
|
222 |
+
* @since 1.3.3
|
223 |
+
*/
|
224 |
+
public function add_block_assets_style() {
|
225 |
+
if ( is_admin() && ! is_customize_preview() ) {
|
226 |
+
add_action( 'enqueue_block_assets', array( $this, 'add_style' ) );
|
227 |
+
}
|
228 |
+
}
|
229 |
+
|
230 |
/**
|
231 |
* Enqueue Scripts
|
232 |
*
|
custom-fonts.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author: Brainstorm Force
|
7 |
* Author URI: http://www.brainstormforce.com
|
8 |
* Text Domain: custom-fonts
|
9 |
-
* Version: 1.3.
|
10 |
*
|
11 |
* @package Bsf_Custom_Fonts
|
12 |
*/
|
@@ -25,7 +25,7 @@ define( 'BSF_CUSTOM_FONTS_FILE', __FILE__ );
|
|
25 |
define( 'BSF_CUSTOM_FONTS_BASE', plugin_basename( BSF_CUSTOM_FONTS_FILE ) );
|
26 |
define( 'BSF_CUSTOM_FONTS_DIR', plugin_dir_path( BSF_CUSTOM_FONTS_FILE ) );
|
27 |
define( 'BSF_CUSTOM_FONTS_URI', plugins_url( '/', BSF_CUSTOM_FONTS_FILE ) );
|
28 |
-
define( 'BSF_CUSTOM_FONTS_VER', '1.3.
|
29 |
|
30 |
/**
|
31 |
* BSF Custom Fonts
|
6 |
* Author: Brainstorm Force
|
7 |
* Author URI: http://www.brainstormforce.com
|
8 |
* Text Domain: custom-fonts
|
9 |
+
* Version: 1.3.3
|
10 |
*
|
11 |
* @package Bsf_Custom_Fonts
|
12 |
*/
|
25 |
define( 'BSF_CUSTOM_FONTS_BASE', plugin_basename( BSF_CUSTOM_FONTS_FILE ) );
|
26 |
define( 'BSF_CUSTOM_FONTS_DIR', plugin_dir_path( BSF_CUSTOM_FONTS_FILE ) );
|
27 |
define( 'BSF_CUSTOM_FONTS_URI', plugins_url( '/', BSF_CUSTOM_FONTS_FILE ) );
|
28 |
+
define( 'BSF_CUSTOM_FONTS_VER', '1.3.3' );
|
29 |
|
30 |
/**
|
31 |
* BSF Custom Fonts
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: brainstormforce
|
|
3 |
Donate link: https://www.paypal.me/BrainstormForce
|
4 |
Tags: Beaver Builder, Elementor, Astra, woff2, woff, ttf, svg, eot, otf, Custom Fonts, Font, Typography
|
5 |
Requires at least: 4.4
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 1.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -43,6 +43,9 @@ If you're not using any of the supported plugins and theme, you can write the cu
|
|
43 |
|
44 |
== Changelog ==
|
45 |
|
|
|
|
|
|
|
46 |
= 1.3.2 =
|
47 |
- Fix: JS conflict with Jetpack plugin on admin.
|
48 |
|
3 |
Donate link: https://www.paypal.me/BrainstormForce
|
4 |
Tags: Beaver Builder, Elementor, Astra, woff2, woff, ttf, svg, eot, otf, Custom Fonts, Font, Typography
|
5 |
Requires at least: 4.4
|
6 |
+
Tested up to: 5.9
|
7 |
+
Stable tag: 1.3.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
43 |
|
44 |
== Changelog ==
|
45 |
|
46 |
+
= 1.3.3 =
|
47 |
+
- Fix: Headers already sent warning in customizer.
|
48 |
+
|
49 |
= 1.3.2 =
|
50 |
- Fix: JS conflict with Jetpack plugin on admin.
|
51 |
|