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

Version Description

wp-block-editor style is now ignored when detecting stylesheets that depend on Google Fonts, when the remove function is enabled.

Download this release

Release Info

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

Code changes from version 2.2.0 to 2.2.1

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.0
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.1
8
  * Author: Daan van den Bergh
9
  * Author URI: https://daan.dev
10
  * License: GPL2v2 or later
includes/frontend/class-functions.php CHANGED
@@ -100,8 +100,9 @@ class OMGF_Frontend_Functions
100
 
101
  $dependencies = array_filter(
102
  $registered, function ($contents) use ($fonts) {
103
- return !empty(array_intersect(array_keys($fonts), $contents->deps));
104
- }
 
105
  );
106
 
107
  foreach ($fonts as $font) {
100
 
101
  $dependencies = array_filter(
102
  $registered, function ($contents) use ($fonts) {
103
+ return !empty(array_intersect(array_keys($fonts), $contents->deps))
104
+ && $contents->handle !== 'wp-block-editor';
105
+ }
106
  );
107
 
108
  foreach ($fonts as $font) {
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.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -115,6 +115,9 @@ N/A
115
 
116
  == Changelog ==
117
 
 
 
 
118
  = 2.2.0 =
119
  Added uninstall script.
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.1
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.1 =
119
+ wp-block-editor style is now ignored when detecting stylesheets that depend on Google Fonts, when the remove function is enabled.
120
+
121
  = 2.2.0 =
122
  Added uninstall script.
123