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

Version Description

| March 10th, 2021 = * Addding ?nomgf=1 to any URL will now temporarily bypass fonts optimization, which allows for easier debugging.

Download this release

Release Info

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

Code changes from version 4.2.6 to 4.2.7

host-webfonts-local.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin Name: OMGF
6
  * Plugin URI: https://daan.dev/wordpress-plugins/host-google-fonts-locally
7
  * Description: Minimize DNS requests, leverage browser cache and speed up WordPress by saving Google Fonts to your server and removing external Google Fonts requests.
8
- * Version: 4.2.6
9
  * Author: Daan from FFW.Press
10
  * Author URI: https://ffw.press
11
  * License: GPL2v2 or later
5
  * Plugin Name: OMGF
6
  * Plugin URI: https://daan.dev/wordpress-plugins/host-google-fonts-locally
7
  * Description: Minimize DNS requests, leverage browser cache and speed up WordPress by saving Google Fonts to your server and removing external Google Fonts requests.
8
+ * Version: 4.2.7
9
  * Author: Daan from FFW.Press
10
  * Author URI: https://ffw.press
11
  * License: GPL2v2 or later
includes/frontend/class-functions.php CHANGED
@@ -41,6 +41,13 @@ class OMGF_Frontend_Functions
41
  */
42
  private function maybe_optimize_fonts()
43
  {
 
 
 
 
 
 
 
44
  if (!OMGF_OPTIMIZE_EDIT_ROLES && current_user_can('edit_pages')) {
45
  return false;
46
  }
41
  */
42
  private function maybe_optimize_fonts()
43
  {
44
+ /**
45
+ * Allows us to quickly bypass fonts optimization.
46
+ */
47
+ if (isset($_GET['nomgf'])) {
48
+ return false;
49
+ }
50
+
51
  if (!OMGF_OPTIMIZE_EDIT_ROLES && current_user_can('edit_pages')) {
52
  return false;
53
  }
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.7
6
- Stable tag: 4.2.6
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -123,6 +123,9 @@ No, not yet. But I will definitely try to make it compatible in the future!
123
 
124
  == Changelog ==
125
 
 
 
 
126
  = 4.2.6 | March 6th, 2021 =
127
  * Tested with WP 5.7
128
  * [FIX] All fonts would be loaded, when all fonts of one font-family were checked for unloading.
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.7
6
+ Stable tag: 4.2.7
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
123
 
124
  == Changelog ==
125
 
126
+ = 4.2.7 | March 10th, 2021 =
127
+ * Addding ?nomgf=1 to any URL will now temporarily bypass fonts optimization, which allows for easier debugging.
128
+
129
  = 4.2.6 | March 6th, 2021 =
130
  * Tested with WP 5.7
131
  * [FIX] All fonts would be loaded, when all fonts of one font-family were checked for unloading.