Custom Fonts - Version 1.3.4

Version Description

  • Fix: Custom fonts are not loading on Astra customizer and Elementor typography settings after Elementor Pro v3.6.0.
Download this release

Release Info

Developer brainstormworg
Plugin Icon 128x128 Custom Fonts
Version 1.3.4
Comparing to
See all releases

Code changes from version 1.3.3 to 1.3.4

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.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.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.4
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.4' );
29
 
30
  /**
31
  * BSF Custom Fonts
includes/class-bsf-custom-fonts-taxonomy.php CHANGED
@@ -69,7 +69,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Taxonomy' ) ) :
69
  * @since 1.0.0
70
  */
71
  public function __construct() {
72
- add_action( 'init', array( $this, 'create_custom_fonts_taxonomies' ) );
73
  }
74
 
75
  /**
@@ -77,7 +77,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Taxonomy' ) ) :
77
  *
78
  * @since 1.0.0
79
  */
80
- public function create_custom_fonts_taxonomies() {
81
  // Taxonomy: bsf_custom_fonts.
82
  $labels = array(
83
  'name' => apply_filters( 'bsf_custom_fonts_menu_title', __( 'Custom Fonts', 'custom-fonts' ) ),
@@ -146,7 +146,7 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Taxonomy' ) ) :
146
  * @return array $fonts fonts array of fonts.
147
  */
148
  public static function get_fonts() {
149
-
150
  if ( is_null( self::$fonts ) ) {
151
  self::$fonts = array();
152
 
@@ -156,7 +156,6 @@ if ( ! class_exists( 'Bsf_Custom_Fonts_Taxonomy' ) ) :
156
  'hide_empty' => false,
157
  )
158
  );
159
-
160
  if ( ! empty( $terms ) ) {
161
  foreach ( $terms as $term ) {
162
  self::$fonts[ $term->name ] = self::get_font_links( $term->term_id );
69
  * @since 1.0.0
70
  */
71
  public function __construct() {
72
+ add_action( 'init', array( 'Bsf_Custom_Fonts_Taxonomy', 'create_custom_fonts_taxonomies' ) );
73
  }
74
 
75
  /**
77
  *
78
  * @since 1.0.0
79
  */
80
+ public static function create_custom_fonts_taxonomies() {
81
  // Taxonomy: bsf_custom_fonts.
82
  $labels = array(
83
  'name' => apply_filters( 'bsf_custom_fonts_menu_title', __( 'Custom Fonts', 'custom-fonts' ) ),
146
  * @return array $fonts fonts array of fonts.
147
  */
148
  public static function get_fonts() {
149
+ self::create_custom_fonts_taxonomies();
150
  if ( is_null( self::$fonts ) ) {
151
  self::$fonts = array();
152
 
156
  'hide_empty' => false,
157
  )
158
  );
 
159
  if ( ! empty( $terms ) ) {
160
  foreach ( $terms as $term ) {
161
  self::$fonts[ $term->name ] = self::get_font_links( $term->term_id );
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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,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.3 =
47
  - Fix: Headers already sent warning in customizer.
48
 
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.4
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.4 =
47
+ - Fix: Custom fonts are not loading on Astra customizer and Elementor typography settings after Elementor Pro v3.6.0.
48
+
49
  = 1.3.3 =
50
  - Fix: Headers already sent warning in customizer.
51