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

Version Description

Fixed bug that would throw excessive notices if PHP logging is enabled. fonts.css was loaded too late, so some minification plugins couldn't capture it.

Download this release

Release Info

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

Code changes from version 2.2.8 to 2.2.9

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 and leverage browser cache by easily saving Google Fonts to your server and removing the external Google Fonts.
7
- * Version: 2.2.8
8
  * Author: Daan van den Bergh
9
  * Author URI: https://daan.dev
10
  * License: GPL2v2 or later
4
  * Plugin Name: OMGF
5
  * Plugin URI: https://daan.dev/wordpress-plugins/host-google-fonts-locally
6
  * Description: Minimize DNS requests and leverage browser cache by easily saving Google Fonts to your server and removing the external Google Fonts.
7
+ * Version: 2.2.9
8
  * Author: Daan van den Bergh
9
  * Author URI: https://daan.dev
10
  * License: GPL2v2 or later
includes/frontend/class-functions.php CHANGED
@@ -27,7 +27,7 @@ class OMGF_Frontend_Functions
27
  {
28
  // @formatter:off
29
  add_action('wp_print_styles', array($this, 'is_remove_google_fonts_enabled'), PHP_INT_MAX - 1000);
30
- add_action('wp_print_styles', array($this, 'enqueue_stylesheet'), PHP_INT_MAX);
31
 
32
  if (OMGF_AUTO_DETECT_ENABLED) {
33
  add_action('wp_print_styles', array($this, 'auto_detect_fonts'), PHP_INT_MAX - 10000);
@@ -136,7 +136,7 @@ class OMGF_Frontend_Functions
136
  {
137
  global $wp_styles;
138
 
139
- $style = $wp_styles->registered[self::OMGF_STYLE_HANDLE];
140
 
141
  /** Do not add 'preload' if Minification plugins are enabled. */
142
  if ($style) {
27
  {
28
  // @formatter:off
29
  add_action('wp_print_styles', array($this, 'is_remove_google_fonts_enabled'), PHP_INT_MAX - 1000);
30
+ add_action('wp_enqueue_scripts', array($this, 'enqueue_stylesheet'), 100);
31
 
32
  if (OMGF_AUTO_DETECT_ENABLED) {
33
  add_action('wp_print_styles', array($this, 'auto_detect_fonts'), PHP_INT_MAX - 10000);
136
  {
137
  global $wp_styles;
138
 
139
+ $style = isset($wp_styles->registered[self::OMGF_STYLE_HANDLE]) ? $wp_styles->registered[self::OMGF_STYLE_HANDLE] : null;
140
 
141
  /** Do not add 'preload' if Minification plugins are enabled. */
142
  if ($style) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://daan.dev/donate/
4
  Tags: google, fonts, host, save, local, locally, webfonts, update, minimize, external, requests, leverage, browser, cache
5
  Requires at least: 4.6
6
  Tested up to: 5.3
7
- Stable tag: 2.2.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -115,6 +115,10 @@ N/A
115
 
116
  == Changelog ==
117
 
 
 
 
 
118
  = 2.2.8 =
119
  Throw clear error if any of the new tables don't exist. To prevent confusion.
120
 
4
  Tags: google, fonts, host, save, local, locally, webfonts, update, minimize, external, requests, leverage, browser, cache
5
  Requires at least: 4.6
6
  Tested up to: 5.3
7
+ Stable tag: 2.2.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
115
 
116
  == Changelog ==
117
 
118
+ = 2.2.9 =
119
+ Fixed bug that would throw excessive notices if PHP logging is enabled.
120
+ fonts.css was loaded too late, so some minification plugins couldn't capture it.
121
+
122
  = 2.2.8 =
123
  Throw clear error if any of the new tables don't exist. To prevent confusion.
124