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

Version Description

Filenames are now rewritten to be more informative and for easier debugging.

Download this release

Release Info

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

Code changes from version 2.4.0 to 2.4.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.4.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.4.1
8
  * Author: Daan van den Bergh
9
  * Author URI: https://daan.dev
10
  * License: GPL2v2 or later
includes/ajax/class-download.php CHANGED
@@ -169,7 +169,10 @@ class OMGF_AJAX_Download extends OMGF_AJAX
169
  continue;
170
  }
171
 
172
- $filename = basename($remoteFile);
 
 
 
173
  $localFile = OMGF_UPLOAD_DIR . '/' . $filename;
174
 
175
  try {
169
  continue;
170
  }
171
 
172
+ /**
173
+ * We rewrite the local filename for easier debugging in the waterfall.
174
+ */
175
+ $filename = $font->font_family . '-' . $font->font_weight . '-' . $font->font_style . '-' . substr(basename($remoteFile), -10);
176
  $localFile = OMGF_UPLOAD_DIR . '/' . $filename;
177
 
178
  try {
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.4.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.4.0 =
119
  Added option to use relative URLs in the generated stylesheet.
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.4.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.4.1 =
119
+ Filenames are now rewritten to be more informative and for easier debugging.
120
+
121
  = 2.4.0 =
122
  Added option to use relative URLs in the generated stylesheet.
123