Version Description
Download this release
Release Info
Developer | Nikschavan |
Plugin | Custom Fonts |
Version | 1.0.6 |
Comparing to | |
See all releases |
Code changes from version 1.0.5 to 1.0.6
- classes/class-bsf-custom-fonts-render.php +2 -1
- custom-fonts.php +2 -2
- readme.txt +5 -2
classes/class-bsf-custom-fonts-render.php
CHANGED
@@ -49,7 +49,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
|
|
49 |
*/
|
50 |
public static function get_instance() {
|
51 |
if ( ! isset( self::$_instance ) ) {
|
52 |
-
self::$_instance = new self;
|
53 |
}
|
54 |
|
55 |
return self::$_instance;
|
@@ -83,6 +83,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Render' ) ) :
|
|
83 |
|
84 |
// Add font files style.
|
85 |
add_action( 'wp_head', array( $this, 'add_style' ) );
|
|
|
86 |
|
87 |
add_filter( 'elementor/fonts/groups', array( $this, 'elementor_group' ) );
|
88 |
add_filter( 'elementor/fonts/additional_fonts', array( $this, 'add_elementor_fonts' ) );
|
49 |
*/
|
50 |
public static function get_instance() {
|
51 |
if ( ! isset( self::$_instance ) ) {
|
52 |
+
self::$_instance = new self();
|
53 |
}
|
54 |
|
55 |
return self::$_instance;
|
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' ) );
|
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.
|
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.
|
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.6
|
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.6' );
|
29 |
|
30 |
/**
|
31 |
* BSF Custom Fonts
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ 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:
|
7 |
-
Stable tag: 1.0.
|
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 |
v1.0.5
|
47 |
* Fix: JavaScript error in the Firefox browser not allowing to upload any fonts.
|
48 |
|
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 |
|
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 |
|