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

Version Description

  • The tiniest bugfix ever: one space too much in a str_replace() caused Font Names with spaces (e.g. Roboto Condensed, or Open Sans) to not be captured correctly.
Download this release

Release Info

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

Code changes from version 4.0.0 to 4.0.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 automatically saving Google Fonts to your server and removing the external Google Fonts.
7
- * Version: 4.0.0
8
  * Author: Daan (from Fast FW Press)
9
  * Author URI: https://ffwp.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 automatically saving Google Fonts to your server and removing the external Google Fonts.
7
+ * Version: 4.0.1
8
  * Author: Daan (from Fast FW Press)
9
  * Author URI: https://ffwp.dev
10
  * License: GPL2v2 or later
includes/api/class-download.php CHANGED
@@ -84,7 +84,7 @@ class OMGF_API_Download extends WP_REST_Controller
84
 
85
  foreach ( $font_families as $font_family ) {
86
  list( $family, $variants ) = explode( ':', $font_family );
87
- $family = str_replace( ' ', '-', strtolower( $family ) );
88
 
89
  if ( defined( 'OMGF_PRO_FORCE_SUBSETS' ) && ! empty( OMGF_PRO_FORCE_SUBSETS ) ) {
90
  $query['subsets'] = implode( ',', OMGF_PRO_FORCE_SUBSETS );
84
 
85
  foreach ( $font_families as $font_family ) {
86
  list( $family, $variants ) = explode( ':', $font_family );
87
+ $family = strtolower(str_replace( ' ', '-', $family ) );
88
 
89
  if ( defined( 'OMGF_PRO_FORCE_SUBSETS' ) && ! empty( OMGF_PRO_FORCE_SUBSETS ) ) {
90
  $query['subsets'] = implode( ',', OMGF_PRO_FORCE_SUBSETS );
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.5
6
- Stable tag: 4.0.0
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -112,6 +112,9 @@ N/A
112
 
113
  == Changelog ==
114
 
 
 
 
115
  = 4.0.0 | September 30th, 2020 =
116
  * OMGF now runs fully automatic to replace/remove Google Fonts from your pages using OMGF's new Download API. No initial configuration required!
117
  * This means that if you use different fonts on different pages, all of them will be cached and served locally.
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.5
6
+ Stable tag: 4.0.1
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
112
 
113
  == Changelog ==
114
 
115
+ = 4.0.1 =
116
+ * The tiniest bugfix ever: one space too much in a str_replace() caused Font Names with spaces (e.g. Roboto Condensed, or Open Sans) to not be captured correctly.
117
+
118
  = 4.0.0 | September 30th, 2020 =
119
  * OMGF now runs fully automatic to replace/remove Google Fonts from your pages using OMGF's new Download API. No initial configuration required!
120
  * This means that if you use different fonts on different pages, all of them will be cached and served locally.