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

Version Description

| September 22nd, 2022 = * Fixed: v5.3.7 introduced a bug affecting only users of the Jupiter theme only. The needed compatibility fixes wouldn't run on Save & Optimize.

Download this release

Release Info

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

Code changes from version 5.3.8 to 5.3.9

host-webfonts-local.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: OMGF
5
  * Plugin URI: https://daan.dev/wordpress/omgf/
6
  * Description: Increase GDPR/DSVGO compliance, reduce DNS requests and leverage browser cache by automatically downloading Google Fonts to your server.
7
- * Version: 5.3.8
8
  * Author: Daan from Daan.dev
9
  * Author URI: https://daan.dev
10
  * License: GPL2v2 or later
4
  * Plugin Name: OMGF
5
  * Plugin URI: https://daan.dev/wordpress/omgf/
6
  * Description: Increase GDPR/DSVGO compliance, reduce DNS requests and leverage browser cache by automatically downloading Google Fonts to your server.
7
+ * Version: 5.3.9
8
  * Author: Daan from Daan.dev
9
  * Author URI: https://daan.dev
10
  * License: GPL2v2 or later
includes/class-optimize.php CHANGED
@@ -108,6 +108,11 @@ class OMGF_Optimize
108
  }
109
  }
110
 
 
 
 
 
 
111
  $fonts_bak = $this->grab_fonts_object($this->url);
112
  $url = $this->unload_variants($this->url);
113
  $fonts = $this->grab_fonts_object($url);
108
  }
109
  }
110
 
111
+ /**
112
+ * @since v5.3.8 If any settings were changed, this will make sure the cache is no longer marked as stale.
113
+ */
114
+ delete_option(OMGF_Admin_Settings::OMGF_CACHE_IS_STALE);
115
+
116
  $fonts_bak = $this->grab_fonts_object($this->url);
117
  $url = $this->unload_variants($this->url);
118
  $fonts = $this->grab_fonts_object($url);
includes/frontend/class-process.php CHANGED
@@ -160,6 +160,8 @@ class OMGF_Frontend_Process
160
  * Always run, if the omgf_optimize parameter (added by Save & Optimize) is set.
161
  */
162
  if (isset($_GET['omgf_optimize'])) {
 
 
163
  return ob_start([$this, 'return_buffer']);
164
  }
165
 
160
  * Always run, if the omgf_optimize parameter (added by Save & Optimize) is set.
161
  */
162
  if (isset($_GET['omgf_optimize'])) {
163
+ do_action('omgf_frontend_process_before_ob_start');
164
+
165
  return ob_start([$this, 'return_buffer']);
166
  }
167
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: DaanvandenBergh
3
  Tags: google, fonts, gdpr, dsvgo, cache, speed, preload, font-display, webfonts, subsets, remove, minimize, external, requests
4
  Requires at least: 4.6
5
  Tested up to: 6.0
6
- Stable tag: 5.3.8
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -76,6 +76,9 @@ For the FAQ, [click here](https://daan.dev/docs/omgf-pro-faq/).
76
 
77
  == Changelog ==
78
 
 
 
 
79
  = 5.3.8 | September 21st, 2022 =
80
  * Fixed: Since Latin Extended is an addon for Latin, it shouldn't be allowed to select it by itself in the Used Subset(s) option.
81
  * Added: Compatibility fix for Logo Carousel (Pro), which (like Category Slider Pro for WooCommerce) adds a random unique identifier to Google Fonts stylesheets on each pageload. Why? Does it hate cache? :'-(
3
  Tags: google, fonts, gdpr, dsvgo, cache, speed, preload, font-display, webfonts, subsets, remove, minimize, external, requests
4
  Requires at least: 4.6
5
  Tested up to: 6.0
6
+ Stable tag: 5.3.9
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
76
 
77
  == Changelog ==
78
 
79
+ = 5.3.9 | September 22nd, 2022 =
80
+ * Fixed: v5.3.7 introduced a bug affecting only users of the Jupiter theme only. The needed compatibility fixes wouldn't run on Save & Optimize.
81
+
82
  = 5.3.8 | September 21st, 2022 =
83
  * Fixed: Since Latin Extended is an addon for Latin, it shouldn't be allowed to select it by itself in the Used Subset(s) option.
84
  * Added: Compatibility fix for Logo Carousel (Pro), which (like Category Slider Pro for WooCommerce) adds a random unique identifier to Google Fonts stylesheets on each pageload. Why? Does it hate cache? :'-(