Google Fonts for WordPress - Version 3.2.3

Version Description

Download this release

Release Info

Developer DannyCooper
Plugin Icon 128x128 Google Fonts for WordPress
Version 3.2.3
Comparing to
See all releases

Code changes from version 3.2.1 to 3.2.3

admin/style.css CHANGED
@@ -121,5 +121,5 @@
121
  width: 100%;
122
  margin-left: 0;
123
  }
124
-
125
  }
121
  width: 100%;
122
  margin-left: 0;
123
  }
124
+
125
  }
assets/js/customize-controls.js CHANGED
@@ -336,16 +336,3 @@ jQuery( document ).ready( function() {
336
  },
337
  } );
338
  }( wp.customize ) );
339
-
340
-
341
- (function($){
342
- wp.customize( 'fpp_host_locally', function( fpp_host_locally ) {
343
- fpp_host_locally.bind( function( value ) {
344
- if( true == value ){
345
- $('#customize-control-fpp_use_woff2').show();
346
- } else {
347
- $('#customize-control-fpp_use_woff2').hide();
348
- }
349
- } );
350
- } );
351
- })(jQuery);
336
  },
337
  } );
338
  }( wp.customize ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 3.2.1 =
2
 
3
  * Add prefixes to control types to prevent conflicts.
1
+ = 3.2.2 =
2
+
3
+ * Fix Classic Editor error when using Typekit fonts
4
+
5
  = 3.2.1 =
6
 
7
  * Add prefixes to control types to prevent conflicts.
class-olympus-google-fonts.php CHANGED
@@ -39,7 +39,7 @@ class Olympus_Google_Fonts {
39
  */
40
  public function constants() {
41
  if ( ! defined( 'OGF_VERSION' ) ) {
42
- define( 'OGF_VERSION', '3.2.1' );
43
  }
44
 
45
  if ( ! defined( 'OGF_DIR_PATH' ) ) {
@@ -105,7 +105,7 @@ class Olympus_Google_Fonts {
105
  if ( file_exists( $author_compat_path ) ) {
106
  require_once $author_compat_path;
107
  }
108
- if ( is_woocommerce_activated() ) {
109
  require_once OGF_DIR_PATH . '/compatibility/woocommerce.php';
110
  }
111
  }
39
  */
40
  public function constants() {
41
  if ( ! defined( 'OGF_VERSION' ) ) {
42
+ define( 'OGF_VERSION', '3.2.3' );
43
  }
44
 
45
  if ( ! defined( 'OGF_DIR_PATH' ) ) {
105
  if ( file_exists( $author_compat_path ) ) {
106
  require_once $author_compat_path;
107
  }
108
+ if ( ogf_is_woocommerce_activated() ) {
109
  require_once OGF_DIR_PATH . '/compatibility/woocommerce.php';
110
  }
111
  }
includes/class-ogf-classic-editor.php CHANGED
@@ -103,7 +103,7 @@ if ( ! class_exists( 'OGF_Classic_Editor' ) ) :
103
  } elseif ( ogf_is_google_font( $headings_type ) ) {
104
  $headings_type = $this->ogf_fonts->get_font_name( $headings_type );
105
  } elseif ( ogf_is_typekit_font( $headings_type ) && array_key_exists( $headings_type, $this->typekit_fonts ) ) {
106
- $headings_type = $this->typekit_fonts[ $headings_type ]['stack'];
107
  }
108
 
109
  $opt['font_formats'] = apply_filters( 'ogf_classic_font_formats', 'Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;' );
103
  } elseif ( ogf_is_google_font( $headings_type ) ) {
104
  $headings_type = $this->ogf_fonts->get_font_name( $headings_type );
105
  } elseif ( ogf_is_typekit_font( $headings_type ) && array_key_exists( $headings_type, $this->typekit_fonts ) ) {
106
+ $headings_type = $this->typekit_fonts[ $headings_type ]['label'];
107
  }
108
 
109
  $opt['font_formats'] = apply_filters( 'ogf_classic_font_formats', 'Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;' );
includes/customizer/panels.php CHANGED
@@ -154,7 +154,7 @@ function ogf_panels_customize_register( $wp_customize ) {
154
  )
155
  );
156
 
157
- if ( is_woocommerce_activated() ) {
158
 
159
  $ogf_woocommerce_panel = new OGF_Customize_Panel(
160
  $wp_customize,
154
  )
155
  );
156
 
157
+ if ( ogf_is_woocommerce_activated() ) {
158
 
159
  $ogf_woocommerce_panel = new OGF_Customize_Panel(
160
  $wp_customize,
includes/functions.php CHANGED
@@ -410,8 +410,12 @@ function ogf_is_google_font( $font_id ) {
410
  /**
411
  * Check if WooCommerce is activated
412
  */
413
- if ( ! function_exists( 'is_woocommerce_activated' ) ) {
414
- function is_woocommerce_activated() {
415
- if ( class_exists( 'woocommerce' ) ) { return true; } else { return false; }
 
 
 
 
416
  }
417
  }
410
  /**
411
  * Check if WooCommerce is activated
412
  */
413
+ if ( ! function_exists( 'ogf_is_woocommerce_activated' ) ) {
414
+ function ogf_is_woocommerce_activated() {
415
+ if ( class_exists( 'woocommerce' ) ) {
416
+ return true;
417
+ } else {
418
+ return false;
419
+ }
420
  }
421
  }
olympus-google-fonts.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin Name: Fonts Plugin | Google Fonts Typography
6
  * Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
7
  * Description: The easiest to use Google Fonts Plugin. No coding required. Optimized for Speed. 1000+ font choices.
8
- * Version: 3.2.1
9
  * Author: Fonts Plugin
10
  * Author URI: https://fontsplugin.com/?utm_source=wporg&utm_medium=readme&utm_campaign=description
11
  * Text Domain: olympus-google-fonts
5
  * Plugin Name: Fonts Plugin | Google Fonts Typography
6
  * Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
7
  * Description: The easiest to use Google Fonts Plugin. No coding required. Optimized for Speed. 1000+ font choices.
8
+ * Version: 3.2.3
9
  * Author: Fonts Plugin
10
  * Author URI: https://fontsplugin.com/?utm_source=wporg&utm_medium=readme&utm_campaign=description
11
  * Text Domain: olympus-google-fonts
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://fontsplugin.com/#pricing
5
  Requires at least: 4.0
6
  Tested up to: 6.1
7
  License: GPLv2 or later
8
- Stable tag: 3.2.1
9
 
10
  The easiest to use Google Fonts Plugin. No coding required. Optimized for Speed. 1000+ font choices.
11
 
5
  Requires at least: 4.0
6
  Tested up to: 6.1
7
  License: GPLv2 or later
8
+ Stable tag: 3.2.3
9
 
10
  The easiest to use Google Fonts Plugin. No coding required. Optimized for Speed. 1000+ font choices.
11