Disable and Remove Google Fonts - Version 1.3.9

Version Description

Download this release

Release Info

Developer DannyCooper
Plugin Icon wp plugin Disable and Remove Google Fonts
Version 1.3.9
Comparing to
See all releases

Code changes from version 1.3.8 to 1.3.9

Files changed (2) hide show
  1. changelog.txt +1 -1
  2. disable-remove-google-fonts.php +5 -3
changelog.txt CHANGED
@@ -1,4 +1,4 @@
1
- = 1.3.8 =
2
 
3
  * Add compatibility for Enfold.
4
 
1
+ = 1.3.9 =
2
 
3
  * Add compatibility for Enfold.
4
 
disable-remove-google-fonts.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Optimize frontend performance by disabling Google Fonts. GDPR-friendly.
6
  * Author: Fonts Plugin
7
  * Author URI: https://fontsplugin.com
8
- * Version: 1.3.8
9
  * License: GPLv2 or later
10
  * License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
11
  *
@@ -143,6 +143,8 @@ if ( ! function_exists( 'hemingway_get_google_fonts_url' ) ) {
143
  */
144
  add_action( 'init', 'drgf_enfold_customization_switch_fonts' );
145
  function drgf_enfold_customization_switch_fonts() {
146
- global $avia;
147
- $avia->style->print_extra_output = false;
 
 
148
  }
5
  * Description: Optimize frontend performance by disabling Google Fonts. GDPR-friendly.
6
  * Author: Fonts Plugin
7
  * Author URI: https://fontsplugin.com
8
+ * Version: 1.3.9
9
  * License: GPLv2 or later
10
  * License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
11
  *
143
  */
144
  add_action( 'init', 'drgf_enfold_customization_switch_fonts' );
145
  function drgf_enfold_customization_switch_fonts() {
146
+ if ( class_exists( 'avia_style_generator' ) ) {
147
+ global $avia;
148
+ $avia->style->print_extra_output = false;
149
+ }
150
  }