Custom Fonts - Version 1.0.7

Version Description

Download this release

Release Info

Developer Nikschavan
Plugin Icon 128x128 Custom Fonts
Version 1.0.7
Comparing to
See all releases

Code changes from version 1.0.6 to 1.0.7

classes/class-bsf-custom-fonts-render.php CHANGED
@@ -83,7 +83,9 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
83
 
84
  // Add font files style.
85
  add_action( 'wp_head', array( $this, 'add_style' ) );
86
- add_action( 'enqueue_block_editor_assets', array( $this, 'add_style' ) );
 
 
87
 
88
  add_filter( 'elementor/fonts/groups', array( $this, 'elementor_group' ) );
89
  add_filter( 'elementor/fonts/additional_fonts', array( $this, 'add_elementor_fonts' ) );
@@ -160,7 +162,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
160
  }
161
  ?>
162
  <style type="text/css">
163
- <?php echo $this->font_css; ?>
164
  </style>
165
  <?php
166
  }
83
 
84
  // Add font files style.
85
  add_action( 'wp_head', array( $this, 'add_style' ) );
86
+ if ( is_admin() ) {
87
+ add_action( 'enqueue_block_assets', array( $this, 'add_style' ) );
88
+ }
89
 
90
  add_filter( 'elementor/fonts/groups', array( $this, 'elementor_group' ) );
91
  add_filter( 'elementor/fonts/additional_fonts', array( $this, 'add_elementor_fonts' ) );
162
  }
163
  ?>
164
  <style type="text/css">
165
+ <?php echo strip_tags( $this->font_css ); ?>
166
  </style>
167
  <?php
168
  }
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.0.6
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.0.6' );
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.0.7
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.0.7' );
29
 
30
  /**
31
  * BSF Custom Fonts
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Custom Fonts ===
2
  Contributors: brainstormforce
3
- Donate link: https://wpastra.com/
4
  Tags: Beaver Builder, Elementor, Astra, woff2, woff, ttf, svg, eot, Custom Fonts, Font, Typography
5
  Requires at least: 4.4
6
- Tested up to: 5.0
7
- Stable tag: 1.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -43,24 +43,27 @@ If you're not using any of the supported plugins and theme, you can write the cu
43
 
44
  == Changelog ==
45
 
46
- v1.0.6
47
- * Improvement: Enqueue the custom fonts in the Blocck Editor to correctly prefiew the custom fonts.
48
 
49
- v1.0.5
50
- * Fix: JavaScript error in the Firefox browser not allowing to upload any fonts.
51
 
52
- v1.0.4
53
- * New: Added compatibility with Beaver Builder Theme, Beaver Builder Plugin and Elementor.
54
 
55
- v1.0.3
56
- * Fix: When two custom fonts are loaded on a site, only one of the fonts will be actually enqueued.
57
 
58
- v1.0.2
59
- * White Label support added from the [Astra Pro](https://wpastra.com/pro/) plugin.
60
 
61
- v1.0.1
62
- 1. Improved the design of the Admin UI.
63
- 2. Changed the plugin name to be Custom Fonts instead of BSF Custom Fonts.
64
 
65
- v1.0.0
66
- 1. Initial release.
 
 
 
 
1
  === Custom Fonts ===
2
  Contributors: brainstormforce
3
+ Donate link: https://www.paypal.me/BrainstormForce
4
  Tags: Beaver Builder, Elementor, Astra, woff2, woff, ttf, svg, eot, Custom Fonts, Font, Typography
5
  Requires at least: 4.4
6
+ Tested up to: 5.1
7
+ Stable tag: 1.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
43
 
44
  == Changelog ==
45
 
46
+ = v1.0.7 =
47
+ - Fix: Custom Fonts loading the Block Editor breaking styling of the editor.
48
 
49
+ = v1.0.6 =
50
+ - Improvement: Enqueue the custom fonts in the Blocck Editor to correctly prefiew the custom fonts.
51
 
52
+ = v1.0.5 =
53
+ - Fix: JavaScript error in the Firefox browser not allowing to upload any fonts.
54
 
55
+ = v1.0.4 =
56
+ - New: Added compatibility with Beaver Builder Theme, Beaver Builder Plugin and Elementor.
57
 
58
+ = v1.0.3 =
59
+ - Fix: When two custom fonts are loaded on a site, only one of the fonts will be actually enqueued.
60
 
61
+ = v1.0.2 =
62
+ - White Label support added from the [Astra Pro](https://wpastra.com/pro/) plugin.
 
63
 
64
+ = v1.0.1 =
65
+ - Improved the design of the Admin UI.
66
+ - Changed the plugin name to be Custom Fonts instead of BSF Custom Fonts.
67
+
68
+ = v1.0.0 =
69
+ - Initial release.