Version Description
| March 12th, 2021 = * [FIX] Strings with a + instead of a space would returned errors in the API.
Download this release
Release Info
Developer | DaanvandenBergh |
Plugin | OMGF | GDPR/DSVGO Compliant, Faster Google Fonts. Easy. |
Version | 4.2.8 |
Comparing to | |
See all releases |
Code changes from version 4.2.7 to 4.2.8
- host-webfonts-local.php +1 -1
- includes/api/class-download.php +1 -1
- readme.txt +4 -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.2.
|
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.2.8
|
9 |
* Author: Daan from FFW.Press
|
10 |
* Author URI: https://ffw.press
|
11 |
* License: GPL2v2 or later
|
includes/api/class-download.php
CHANGED
@@ -246,7 +246,7 @@ class OMGF_API_Download extends WP_REST_Controller
|
|
246 |
$url = self::OMGF_GOOGLE_FONTS_API_URL . '/api/fonts/%s';
|
247 |
|
248 |
list($family, $variants) = explode(':', $font_family);
|
249 |
-
$family = strtolower(str_replace(' ', '-', $family));
|
250 |
|
251 |
/**
|
252 |
* Add fonts to the request's $_GET 'family' parameter. Then pass an array to 'omgf_alternate_fonts'
|
246 |
$url = self::OMGF_GOOGLE_FONTS_API_URL . '/api/fonts/%s';
|
247 |
|
248 |
list($family, $variants) = explode(':', $font_family);
|
249 |
+
$family = strtolower(str_replace([' ', '+'], '-', $family));
|
250 |
|
251 |
/**
|
252 |
* Add fonts to the request's $_GET 'family' parameter. Then pass an array to 'omgf_alternate_fonts'
|
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.2.
|
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.2.7 | March 10th, 2021 =
|
127 |
* Addding ?nomgf=1 to any URL will now temporarily bypass fonts optimization, which allows for easier debugging.
|
128 |
|
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.2.8
|
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.2.8 | March 12th, 2021 =
|
127 |
+
* [FIX] Strings with a + instead of a space would returned errors in the API.
|
128 |
+
|
129 |
= 4.2.7 | March 10th, 2021 =
|
130 |
* Addding ?nomgf=1 to any URL will now temporarily bypass fonts optimization, which allows for easier debugging.
|
131 |
|