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

Version Description

  • Added filter so Auto Remove can be disabled by other plugins (OMGF Pro, in this case.)
Download this release

Release Info

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

Code changes from version 3.6.1 to 3.6.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.6.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.6.2
8
  * Author: Daan van den Bergh
9
  * Author URI: https://daan.dev
10
  * License: GPL2v2 or later
includes/frontend/class-functions.php CHANGED
@@ -100,6 +100,10 @@ class OMGF_Frontend_Functions
100
  */
101
  public function remove_google_fonts()
102
  {
 
 
 
 
103
  global $wp_styles;
104
 
105
  $registered = $wp_styles->registered;
100
  */
101
  public function remove_google_fonts()
102
  {
103
+ if (apply_filters('omgf_pro_auto_remove_enabled', false)) {
104
+ return;
105
+ }
106
+
107
  global $wp_styles;
108
 
109
  $registered = $wp_styles->registered;
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.4
6
- Stable tag: 3.6.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.6.1 =
116
  * Fixed bug in Auto Detect where duplicate fonts would override the earlier detected font styles. Newer styles are now appended to the list.
117
  * Added multiple filters and action hooks to prepare OMGF for the release of OMGF Pro.
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.4
6
+ Stable tag: 3.6.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.6.2 =
116
+ * Added filter so Auto Remove can be disabled by other plugins (OMGF Pro, in this case.)
117
+
118
  = 3.6.1 =
119
  * Fixed bug in Auto Detect where duplicate fonts would override the earlier detected font styles. Newer styles are now appended to the list.
120
  * Added multiple filters and action hooks to prepare OMGF for the release of OMGF Pro.