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

Version Description

  • Fixed notice: invalid operand type.
Download this release

Release Info

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

Code changes from version 3.8.1 to 3.8.2

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: 3.8.1
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: 3.8.2
8
  * Author: Daan van den Bergh
9
  * Author URI: https://daan.dev
10
  * License: GPL2v2 or later
includes/frontend/class-functions.php CHANGED
@@ -122,7 +122,7 @@ class OMGF_Frontend_Functions
122
  * If Remove Google Fonts is enabled, but no stylesheet is generated, there's no need to add OMGF's stylesheet
123
  * as a dependency.
124
  */
125
- $deps = array_diff($dependency->deps, array_keys($fonts)) + ($registered['omgf-fonts'] ?? []);
126
  wp_deregister_style($dependency->handle);
127
  wp_dequeue_style($dependency->handle);
128
 
122
  * If Remove Google Fonts is enabled, but no stylesheet is generated, there's no need to add OMGF's stylesheet
123
  * as a dependency.
124
  */
125
+ $deps = array_diff($dependency->deps, array_keys($fonts)) + (isset($registered['omgf-fonts']) ? ['omgf-fonts'] : []);
126
  wp_deregister_style($dependency->handle);
127
  wp_dequeue_style($dependency->handle);
128
 
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: 3.8.1
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
  = 3.8.1 | August 27th, 2020 =
116
  * Bugfix: if Auto Remove was enabled, but no stylesheet was yet generated, this would break some themes' stylesheet.
117
 
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: 3.8.2
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
+ = 3.8.2 =
116
+ * Fixed notice: invalid operand type.
117
+
118
  = 3.8.1 | August 27th, 2020 =
119
  * Bugfix: if Auto Remove was enabled, but no stylesheet was yet generated, this would break some themes' stylesheet.
120