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

Version Description

| March 29th, 2021 = * Added Mukta (FKA Ek Mukta) to list of renamed Google Fonts.

Download this release

Release Info

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

Code changes from version 4.3.0 to 4.3.1

host-webfonts-local.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin Name: OMGF
6
  * Plugin URI: https://daan.dev/wordpress-plugins/host-google-fonts-locally
7
  * Description: Minimize DNS requests, leverage browser cache and speed up WordPress by saving Google Fonts to your server and removing external Google Fonts requests.
8
- * Version: 4.3.0
9
  * Author: Daan from FFW.Press
10
  * Author URI: https://ffw.press
11
  * License: GPL2v2 or later
5
  * Plugin Name: OMGF
6
  * Plugin URI: https://daan.dev/wordpress-plugins/host-google-fonts-locally
7
  * Description: Minimize DNS requests, leverage browser cache and speed up WordPress by saving Google Fonts to your server and removing external Google Fonts requests.
8
+ * Version: 4.3.1
9
  * Author: Daan from FFW.Press
10
  * Author URI: https://ffw.press
11
  * License: GPL2v2 or later
includes/admin/settings/class-optimize.php CHANGED
@@ -197,7 +197,7 @@ class OMGF_Admin_Settings_Optimize extends OMGF_Admin_Settings_Builder
197
  <?php
198
  $aka = in_array($font->id, OMGF_API_Download::OMGF_RENAMED_GOOGLE_FONTS) ? array_search($font->id, OMGF_API_Download::OMGF_RENAMED_GOOGLE_FONTS) : '';
199
  ?>
200
- <th><?= $font->family; ?> <span class="handle">(<em><?= $aka ? sprintf(__('previously known as <strong>%s</strong>', $this->plugin_text_domain), ucfirst($aka)) . ' -- ' : ''; ?><?= __('Stylesheet handle', $this->plugin_text_domain); ?>: <strong><?= $handle; ?></strong></em>)</span></th>
201
  <?php foreach ($font->variants as $variant) : ?>
202
  <tr>
203
  <td></td>
197
  <?php
198
  $aka = in_array($font->id, OMGF_API_Download::OMGF_RENAMED_GOOGLE_FONTS) ? array_search($font->id, OMGF_API_Download::OMGF_RENAMED_GOOGLE_FONTS) : '';
199
  ?>
200
+ <th><?= $font->family; ?> <span class="handle">(<em><?= $aka ? sprintf(__('formerly known as <strong>%s</strong>', $this->plugin_text_domain), ucfirst($aka)) . ' -- ' : ''; ?><?= __('Stylesheet handle', $this->plugin_text_domain); ?>: <strong><?= $handle; ?></strong></em>)</span></th>
201
  <?php foreach ($font->variants as $variant) : ?>
202
  <tr>
203
  <td></td>
includes/api/class-download.php CHANGED
@@ -26,7 +26,8 @@ class OMGF_API_Download extends WP_REST_Controller
26
  * The key of an element should be dashed (no spaces) if necessary, e.g. open-sans.
27
  */
28
  const OMGF_RENAMED_GOOGLE_FONTS = [
29
- 'muli' => 'mulish'
 
30
  ];
31
 
32
  private $plugin_text_domain = 'host-webfonts-local';
26
  * The key of an element should be dashed (no spaces) if necessary, e.g. open-sans.
27
  */
28
  const OMGF_RENAMED_GOOGLE_FONTS = [
29
+ 'ek-mukta' => 'mukta',
30
+ 'muli' => 'mulish'
31
  ];
32
 
33
  private $plugin_text_domain = 'host-webfonts-local';
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.7
6
- Stable tag: 4.3.0
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -123,6 +123,9 @@ No, not yet. But I will definitely try to make it compatible in the future!
123
 
124
  == Changelog ==
125
 
 
 
 
126
  = 4.3.0 | March 17th, 2021 =
127
  * [FEAT] Renamed fonts will now be captured using their new name (e.g. Mulish), but remain in the stylesheet with their old name (e.g. Muli) to prevent manual changes to the stylesheet after optimization.
128
  * [FEAT] Added Load WOFF2 Only option.
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.7
6
+ Stable tag: 4.3.1
7
  Requires PHP: 7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
123
 
124
  == Changelog ==
125
 
126
+ = 4.3.1 | March 29th, 2021 =
127
+ * Added Mukta (FKA Ek Mukta) to list of renamed Google Fonts.
128
+
129
  = 4.3.0 | March 17th, 2021 =
130
  * [FEAT] Renamed fonts will now be captured using their new name (e.g. Mulish), but remain in the stylesheet with their old name (e.g. Muli) to prevent manual changes to the stylesheet after optimization.
131
  * [FEAT] Added Load WOFF2 Only option.