OMGF | GDPR/DSVGO Compliant, Faster Google Fonts. Easy. - Version 4.5.18

Version Description

  • Fixed: use of undefined constant 'OMGF_DEBUG_MODE'.
Download this release

Release Info

Developer DaanvandenBergh
Plugin Icon 128x128 OMGF | GDPR/DSVGO Compliant, Faster Google Fonts. Easy.
Version 4.5.18
Comparing to
See all releases

Code changes from version 4.5.16 to 4.5.18

host-webfonts-local.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: OMGF
5
  * Plugin URI: https://daan.dev/wordpress-plugins/host-google-fonts-locally
6
  * Description: Minimize DNS requests, leverage browser cache and speed up WordPress by saving Google Fonts to your server and removing external Google Fonts requests.
7
- * Version: 4.5.16
8
  * Author: Daan from FFW.Press
9
  * Author URI: https://ffw.press
10
  * License: GPL2v2 or later
@@ -21,7 +21,6 @@ define('OMGF_PLUGIN_FILE', __FILE__);
21
  define('OMGF_PLUGIN_BASENAME', plugin_basename(OMGF_PLUGIN_FILE));
22
  define('OMGF_STATIC_VERSION', '4.5.11');
23
  define('OMGF_DB_VERSION', '4.5.1');
24
- define('OMGF_DEBUG_MODE', false); // Do NOT leave this enabled. For debugging purposes only.
25
 
26
  /**
27
  * Takes care of loading classes on demand.
4
  * Plugin Name: OMGF
5
  * Plugin URI: https://daan.dev/wordpress-plugins/host-google-fonts-locally
6
  * Description: Minimize DNS requests, leverage browser cache and speed up WordPress by saving Google Fonts to your server and removing external Google Fonts requests.
7
+ * Version: 4.5.18
8
  * Author: Daan from FFW.Press
9
  * Author URI: https://ffw.press
10
  * License: GPL2v2 or later
21
  define('OMGF_PLUGIN_BASENAME', plugin_basename(OMGF_PLUGIN_FILE));
22
  define('OMGF_STATIC_VERSION', '4.5.11');
23
  define('OMGF_DB_VERSION', '4.5.1');
 
24
 
25
  /**
26
  * Takes care of loading classes on demand.
includes/class-omgf.php CHANGED
@@ -372,7 +372,7 @@ class OMGF
372
  */
373
  public static function debug($message)
374
  {
375
- if (!OMGF_DEBUG_MODE) {
376
  return;
377
  }
378
 
372
  */
373
  public static function debug($message)
374
  {
375
+ if (!defined('OMGF_DEBUG_MODE') || !OMGF_DEBUG_MODE) {
376
  return;
377
  }
378
 
includes/frontend/class-functions.php CHANGED
@@ -245,12 +245,11 @@ class OMGF_Frontend_Functions
245
  }
246
  );
247
 
 
 
248
  /**
249
  * @since v4.5.11 Added filter to allow adding additional stylesheets.
250
  */
251
-
252
- OMGF::debug(sprintf(__('Found %s stylesheets containing Google Fonts: %s', $this->plugin_text_domain), $detected_stylesheets, print_r($detected_stylesheets, true)));
253
-
254
  return apply_filters('omgf_detected_registered_stylesheets', $detected_stylesheets, $registered_styles);
255
  }
256
  }
245
  }
246
  );
247
 
248
+ OMGF::debug(sprintf(__('Found %s stylesheets containing Google Fonts: %s', $this->plugin_text_domain), count($detected_stylesheets), print_r($detected_stylesheets, true)));
249
+
250
  /**
251
  * @since v4.5.11 Added filter to allow adding additional stylesheets.
252
  */
 
 
 
253
  return apply_filters('omgf_detected_registered_stylesheets', $detected_stylesheets, $registered_styles);
254
  }
255
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: DaanvandenBergh
3
  Tags: google, fonts, gdpr, cache, speed, preload, font-display, webfonts, subsets, remove, minimize, external, requests
4
  Requires at least: 4.6
5
  Tested up to: 5.9
6
- Stable tag: 4.5.16
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -83,6 +83,12 @@ For the FAQ, [click here](https://docs.ffw.press/category/76-omgf-pro---faq).
83
 
84
  == Changelog ==
85
 
 
 
 
 
 
 
86
  = 4.5.16 | February 2nd, 2022 =
87
  * Fixed: WP 5.9 welcome banner removed from Help section.
88
  * Added: Basic debugging throughout the plugin (can be enable by setting the OMGF_DEBUG_MODE constant to true);
3
  Tags: google, fonts, gdpr, cache, speed, preload, font-display, webfonts, subsets, remove, minimize, external, requests
4
  Requires at least: 4.6
5
  Tested up to: 5.9
6
+ Stable tag: 4.5.18
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
83
 
84
  == Changelog ==
85
 
86
+ = 4.5.18 =
87
+ * Fixed: use of undefined constant 'OMGF_DEBUG_MODE'.
88
+
89
+ = 4.5.17 | February 4th, 2022 =
90
+ * Hotfix: array to string conversion on line 252 in class OMGF_Frontend_Functions.
91
+
92
  = 4.5.16 | February 2nd, 2022 =
93
  * Fixed: WP 5.9 welcome banner removed from Help section.
94
  * Added: Basic debugging throughout the plugin (can be enable by setting the OMGF_DEBUG_MODE constant to true);