Version Description
| June 28th, 2022 = * Fixed: updated links from ffw.press to daan.dev after the migration.
Download this release
Release Info
Developer | DaanvandenBergh |
Plugin | OMGF | GDPR/DSVGO Compliant, Faster Google Fonts. Easy. |
Version | 5.2.2 |
Comparing to | |
See all releases |
Code changes from version 5.2.1 to 5.2.2
- assets/css/omgf-admin.css +1 -1
- assets/css/omgf-admin.less +1 -1
- ffwp-autoload.php +1 -1
- host-webfonts-local.php +3 -3
- includes/admin/class-notice.php +1 -1
- includes/admin/class-optimize.php +1 -1
- includes/admin/class-settings.php +4 -4
- includes/admin/settings/class-advanced.php +1 -1
- includes/admin/settings/class-builder.php +1 -1
- includes/admin/settings/class-detection.php +2 -2
- includes/admin/settings/class-help.php +7 -7
- includes/admin/settings/class-optimize.php +5 -5
- includes/class-admin.php +1 -1
- includes/class-ajax.php +1 -1
- includes/class-download.php +1 -1
- includes/class-omgf.php +3 -3
- includes/class-optimize.php +1 -1
- includes/class-stylesheet-generator.php +2 -2
- includes/class-uninstall.php +1 -1
- includes/frontend/class-process.php +1 -1
- includes/optimize/class-run.php +1 -1
- readme.md +2 -2
- readme.txt +7 -4
assets/css/omgf-admin.css
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* @package : OMGF
|
11 |
* @author : Daan van den Bergh
|
12 |
* @copyright: © 2022 Daan van den Bergh
|
13 |
-
* @url : https://
|
14 |
* * * * * * * * * * * * * * * * * * * */
|
15 |
/**
|
16 |
* General
|
10 |
* @package : OMGF
|
11 |
* @author : Daan van den Bergh
|
12 |
* @copyright: © 2022 Daan van den Bergh
|
13 |
+
* @url : https://daan.dev
|
14 |
* * * * * * * * * * * * * * * * * * * */
|
15 |
/**
|
16 |
* General
|
assets/css/omgf-admin.less
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* @package : OMGF
|
11 |
* @author : Daan van den Bergh
|
12 |
* @copyright: © 2022 Daan van den Bergh
|
13 |
-
* @url : https://
|
14 |
* * * * * * * * * * * * * * * * * * * */
|
15 |
|
16 |
/**
|
10 |
* @package : OMGF
|
11 |
* @author : Daan van den Bergh
|
12 |
* @copyright: © 2022 Daan van den Bergh
|
13 |
+
* @url : https://daan.dev
|
14 |
* * * * * * * * * * * * * * * * * * * */
|
15 |
|
16 |
/**
|
ffwp-autoload.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/* * * * * * * * * * * * * * * * * * * * * *
|
3 |
* @author : Daan van den Bergh
|
4 |
-
* @url : https://
|
5 |
* @copyright: © 2022 Daan van den Bergh
|
6 |
* @license : GPL2v2 or later
|
7 |
* * * * * * * * * * * * * * * * * * * * * */
|
1 |
<?php
|
2 |
/* * * * * * * * * * * * * * * * * * * * * *
|
3 |
* @author : Daan van den Bergh
|
4 |
+
* @url : https://daan.dev/wordpress-plugins/
|
5 |
* @copyright: © 2022 Daan van den Bergh
|
6 |
* @license : GPL2v2 or later
|
7 |
* * * * * * * * * * * * * * * * * * * * * */
|
host-webfonts-local.php
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
|
3 |
/**
|
4 |
* Plugin Name: OMGF
|
5 |
-
* Plugin URI: https://
|
6 |
* Description: Increase GDPR compliance, reduce DNS requests and leverage browser cache by automatically downloading Google Fonts to your server.
|
7 |
-
* Version: 5.2.
|
8 |
* Author: Daan from FFW.Press
|
9 |
-
* Author URI: https://
|
10 |
* License: GPL2v2 or later
|
11 |
* Text Domain: host-webfonts-local
|
12 |
*/
|
2 |
|
3 |
/**
|
4 |
* Plugin Name: OMGF
|
5 |
+
* Plugin URI: https://daan.dev/wordpress/omgf/
|
6 |
* Description: Increase GDPR compliance, reduce DNS requests and leverage browser cache by automatically downloading Google Fonts to your server.
|
7 |
+
* Version: 5.2.2
|
8 |
* Author: Daan from FFW.Press
|
9 |
+
* Author URI: https://daan.dev
|
10 |
* License: GPL2v2 or later
|
11 |
* Text Domain: host-webfonts-local
|
12 |
*/
|
includes/admin/class-notice.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
-
* @url : https://
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
+
* @url : https://daan.dev
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
includes/admin/class-optimize.php
CHANGED
@@ -13,7 +13,7 @@ defined('ABSPATH') || exit;
|
|
13 |
* @package : OMGF
|
14 |
* @author : Daan van den Bergh
|
15 |
* @copyright: © 2022 Daan van den Bergh
|
16 |
-
* @url : https://
|
17 |
* * * * * * * * * * * * * * * * * * * */
|
18 |
|
19 |
class OMGF_Admin_Optimize
|
13 |
* @package : OMGF
|
14 |
* @author : Daan van den Bergh
|
15 |
* @copyright: © 2022 Daan van den Bergh
|
16 |
+
* @url : https://daan.dev
|
17 |
* * * * * * * * * * * * * * * * * * * */
|
18 |
|
19 |
class OMGF_Admin_Optimize
|
includes/admin/class-settings.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
-
* @url : https://
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
@@ -139,7 +139,7 @@ class OMGF_Admin_Settings extends OMGF_Admin
|
|
139 |
*/
|
140 |
const OMGF_OPTIONS_GENERAL_PAGE_OPTIMIZE_WEBFONTS = 'options-general.php?page=optimize-webfonts';
|
141 |
const OMGF_PLUGINS_INSTALL_CHANGELOG_SECTION = 'plugin-install.php?tab=plugin-information&plugin=host-webfonts-local&TB_iframe=true&width=772&height=1015§ion=changelog';
|
142 |
-
const FFWP_WORDPRESS_PLUGINS_OMGF_PRO = 'https://
|
143 |
|
144 |
/** @var string $active_tab */
|
145 |
private $active_tab;
|
@@ -459,7 +459,7 @@ class OMGF_Admin_Settings extends OMGF_Admin
|
|
459 |
$xml = get_transient(self::OMGF_NEWS_REEL);
|
460 |
|
461 |
if (!$xml) {
|
462 |
-
$response = wp_remote_get('https://
|
463 |
|
464 |
if (!is_wp_error($response)) {
|
465 |
$xml = wp_remote_retrieve_body($response);
|
@@ -490,7 +490,7 @@ class OMGF_Admin_Settings extends OMGF_Admin
|
|
490 |
return $text;
|
491 |
}
|
492 |
|
493 |
-
$text = sprintf(__('Recently tagged <a target="_blank" href="%s"><strong>#OMGF</strong></a> on my blog:', $this->plugin_text_domain), 'https://
|
494 |
$text .= '<span id="omgf-ticker-wrap">';
|
495 |
$i = 0;
|
496 |
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
+
* @url : https://daan.dev
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
139 |
*/
|
140 |
const OMGF_OPTIONS_GENERAL_PAGE_OPTIMIZE_WEBFONTS = 'options-general.php?page=optimize-webfonts';
|
141 |
const OMGF_PLUGINS_INSTALL_CHANGELOG_SECTION = 'plugin-install.php?tab=plugin-information&plugin=host-webfonts-local&TB_iframe=true&width=772&height=1015§ion=changelog';
|
142 |
+
const FFWP_WORDPRESS_PLUGINS_OMGF_PRO = 'https://daan.dev/wordpress/omgf-pro/';
|
143 |
|
144 |
/** @var string $active_tab */
|
145 |
private $active_tab;
|
459 |
$xml = get_transient(self::OMGF_NEWS_REEL);
|
460 |
|
461 |
if (!$xml) {
|
462 |
+
$response = wp_remote_get('https://daan.dev/blog/tag/omgf/feed');
|
463 |
|
464 |
if (!is_wp_error($response)) {
|
465 |
$xml = wp_remote_retrieve_body($response);
|
490 |
return $text;
|
491 |
}
|
492 |
|
493 |
+
$text = sprintf(__('Recently tagged <a target="_blank" href="%s"><strong>#OMGF</strong></a> on my blog:', $this->plugin_text_domain), 'https://daan.dev/blog/tag/omgf') . ' ';
|
494 |
$text .= '<span id="omgf-ticker-wrap">';
|
495 |
$i = 0;
|
496 |
|
includes/admin/settings/class-advanced.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
-
* @url : https://
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
+
* @url : https://daan.dev
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
includes/admin/settings/class-builder.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
-
* @url : https://
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
+
* @url : https://daan.dev
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
includes/admin/settings/class-detection.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
-
* @url : https://
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
@@ -88,7 +88,7 @@ class OMGF_Admin_Settings_Detection extends OMGF_Admin_Settings_Builder
|
|
88 |
<?php endforeach; ?>
|
89 |
</fieldset>
|
90 |
<p class="description">
|
91 |
-
<?= sprintf(__('By default, OMGF scans each page for mentions of URLs pointing to fonts.googleapis.com. If you need OMGF to "dig deeper", e.g. inside a theme\'s/plugin\'s CSS stylesheets or (Web Font Loader) JS files, <a href="%s" target="_blank">enable these options</a> to increase its level of detection. Best used in combination with a page caching plugin.', $this->plugin_text_domain), 'https://
|
92 |
</p>
|
93 |
<ul>
|
94 |
<?php foreach ($this->advanced_processing_pro_options() as $name => $data) : ?>
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
+
* @url : https://daan.dev
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
88 |
<?php endforeach; ?>
|
89 |
</fieldset>
|
90 |
<p class="description">
|
91 |
+
<?= sprintf(__('By default, OMGF scans each page for mentions of URLs pointing to fonts.googleapis.com. If you need OMGF to "dig deeper", e.g. inside a theme\'s/plugin\'s CSS stylesheets or (Web Font Loader) JS files, <a href="%s" target="_blank">enable these options</a> to increase its level of detection. Best used in combination with a page caching plugin.', $this->plugin_text_domain), 'https://daan.dev/docs/omgf-pro/detection-settings-advanced-processing/') . ' ' . $this->promo; ?>
|
92 |
</p>
|
93 |
<ul>
|
94 |
<?php foreach ($this->advanced_processing_pro_options() as $name => $data) : ?>
|
includes/admin/settings/class-help.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
-
* @url : https://
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
@@ -50,11 +50,11 @@ class OMGF_Admin_Settings_Help extends OMGF_Admin_Settings_Builder
|
|
50 |
<?php _e('Need Help?', $this->plugin_text_domain); ?>
|
51 |
</h3>
|
52 |
<ul>
|
53 |
-
<li><a target="_blank" href="<?= apply_filters('omgf_settings_help_quick_start', 'https://
|
54 |
-
<li><a target="_blank" href="<?= apply_filters('omgf_settings_help_user_manual', 'https://
|
55 |
-
<li><a target="_blank" href="<?= apply_filters('omgf_settings_help_faq_link', 'https://
|
56 |
-
<li><a target="_blank" href="<?= apply_filters('omgf_settings_help_troubleshooting_link', 'https://
|
57 |
-
<li><a target="_blank" href="<?= apply_filters('omgf_settings_help_support_link', 'https://
|
58 |
</ul>
|
59 |
</div>
|
60 |
<div class="column">
|
@@ -67,7 +67,7 @@ class OMGF_Admin_Settings_Help extends OMGF_Admin_Settings_Builder
|
|
67 |
<div class="column last">
|
68 |
<h3 class="signature"><?= sprintf(__('Coded with %s by', $this->plugin_text_domain), '<i class="dashicons dashicons-heart"></i>'); ?> </h3>
|
69 |
<p class="signature">
|
70 |
-
<a target="_blank" title="<?= __('Visit FFW Press', $this->plugin_text_domain); ?>" href="https://
|
71 |
</p>
|
72 |
</div>
|
73 |
</div>
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
+
* @url : https://daan.dev
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
50 |
<?php _e('Need Help?', $this->plugin_text_domain); ?>
|
51 |
</h3>
|
52 |
<ul>
|
53 |
+
<li><a target="_blank" href="<?= apply_filters('omgf_settings_help_quick_start', 'https://daan.dev/docs/omgf-pro/quick-start'); ?>"><i class="dashicons dashicons-controls-forward"></i><?= __('Quick Start Guide', $this->plugin_text_domain); ?></a></li>
|
54 |
+
<li><a target="_blank" href="<?= apply_filters('omgf_settings_help_user_manual', 'https://daan.dev/docs/omgf-pro/'); ?>"><i class="dashicons dashicons-text-page"></i><?= __('User Manual', $this->plugin_text_domain); ?></a></li>
|
55 |
+
<li><a target="_blank" href="<?= apply_filters('omgf_settings_help_faq_link', 'https://daan.dev/docs/omgf-pro-faq/'); ?>"><i class="dashicons dashicons-editor-help"></i><?= __('FAQ', $this->plugin_text_domain); ?></a></li>
|
56 |
+
<li><a target="_blank" href="<?= apply_filters('omgf_settings_help_troubleshooting_link', 'https://daan.dev/docs/omgf-pro-troubleshooting/'); ?>"><i class="dashicons dashicons-sos"></i><?= __('Troubleshooting Guide', $this->plugin_text_domain); ?></a></li>
|
57 |
+
<li><a target="_blank" href="<?= apply_filters('omgf_settings_help_support_link', 'https://daan.dev/contact/'); ?>"><i class="dashicons dashicons-email"></i><?= __('Get Support', $this->plugin_text_domain); ?></a></li>
|
58 |
</ul>
|
59 |
</div>
|
60 |
<div class="column">
|
67 |
<div class="column last">
|
68 |
<h3 class="signature"><?= sprintf(__('Coded with %s by', $this->plugin_text_domain), '<i class="dashicons dashicons-heart"></i>'); ?> </h3>
|
69 |
<p class="signature">
|
70 |
+
<a target="_blank" title="<?= __('Visit FFW Press', $this->plugin_text_domain); ?>" href="https://daan.dev/wordpress-plugins/"><img class="signature-image" alt="<?= __('Visit FFW Press', $this->plugin_text_domain); ?>" src="<?= plugin_dir_url(OMGF_PLUGIN_FILE) . 'assets/images/logo-color.png'; ?>" /></a>
|
71 |
</p>
|
72 |
</div>
|
73 |
</div>
|
includes/admin/settings/class-optimize.php
CHANGED
@@ -11,14 +11,14 @@
|
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
-
* @url : https://
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
18 |
|
19 |
class OMGF_Admin_Settings_Optimize extends OMGF_Admin_Settings_Builder
|
20 |
{
|
21 |
-
const FFW_PRESS_OMGF_AF_URL = 'https://
|
22 |
|
23 |
/** @var array $optimized_fonts */
|
24 |
private $optimized_fonts = [];
|
@@ -243,7 +243,7 @@ class OMGF_Admin_Settings_Optimize extends OMGF_Admin_Settings_Builder
|
|
243 |
*/
|
244 |
$this->optimized_fonts = OMGF::optimized_fonts();
|
245 |
?>
|
246 |
-
<span class="option-title"><?= __('Manage Optimized Fonts', $this->plugin_text_domain); ?><span class="dashicons dashicons-info tooltip"><span class="tooltip-text"><span class="inline-text"><?php echo sprintf(__('Don\'t know where or how to start optimizing your Google Fonts? That\'s okay. <a href="%s">This guide</a> will get you sorted.', $this->plugin_text_domain), 'https://
|
247 |
<?php if (!empty($this->optimized_fonts)) : ?>
|
248 |
<?= $this->do_optimized_fonts_manager(); ?>
|
249 |
<?php else : ?>
|
@@ -271,10 +271,10 @@ class OMGF_Admin_Settings_Optimize extends OMGF_Admin_Settings_Builder
|
|
271 |
<td> </td>
|
272 |
<th><?= __('Style', $this->plugin_text_domain); ?></th>
|
273 |
<th><?= __('Weight', $this->plugin_text_domain); ?></th>
|
274 |
-
<th><?= __('Preload', $this->plugin_text_domain); ?><span class="dashicons dashicons-info tooltip"><span class="tooltip-text"><span class="inline-text"><?php echo sprintf(__('<a href="%s">Preload font files</a> prior to page rendering to improve perceived loading times. Only use preload for font files that are used above the fold.', $this->plugin_text_domain), 'https://
|
275 |
<th><?= __('Do not load', $this->plugin_text_domain); ?></th>
|
276 |
<th><?= __('Fallback Font Stack (Pro)', $this->plugin_text_domain); ?></th>
|
277 |
-
<th><?= __('Replace (Pro)', $this->plugin_text_domain); ?><span class="dashicons dashicons-info tooltip"><span class="tooltip-text"><span class="inline-text"><?php echo sprintf(__('When the <a href="%s">Replace option</a> is checked, the selected Fallback Font Stack will replace the corresponding Google Font family, instead of functioning as a fallback.', $this->plugin_text_domain), 'https://
|
278 |
</tr>
|
279 |
</thead>
|
280 |
<?php
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
+
* @url : https://daan.dev
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
18 |
|
19 |
class OMGF_Admin_Settings_Optimize extends OMGF_Admin_Settings_Builder
|
20 |
{
|
21 |
+
const FFW_PRESS_OMGF_AF_URL = 'https://daan.dev/wordpress/omgf-additional-fonts/';
|
22 |
|
23 |
/** @var array $optimized_fonts */
|
24 |
private $optimized_fonts = [];
|
243 |
*/
|
244 |
$this->optimized_fonts = OMGF::optimized_fonts();
|
245 |
?>
|
246 |
+
<span class="option-title"><?= __('Manage Optimized Fonts', $this->plugin_text_domain); ?><span class="dashicons dashicons-info tooltip"><span class="tooltip-text"><span class="inline-text"><?php echo sprintf(__('Don\'t know where or how to start optimizing your Google Fonts? That\'s okay. <a href="%s">This guide</a> will get you sorted.', $this->plugin_text_domain), 'https://daan.dev/blog/how-to/wordpress-google-fonts/'); ?></span></span></span></span>
|
247 |
<?php if (!empty($this->optimized_fonts)) : ?>
|
248 |
<?= $this->do_optimized_fonts_manager(); ?>
|
249 |
<?php else : ?>
|
271 |
<td> </td>
|
272 |
<th><?= __('Style', $this->plugin_text_domain); ?></th>
|
273 |
<th><?= __('Weight', $this->plugin_text_domain); ?></th>
|
274 |
+
<th><?= __('Preload', $this->plugin_text_domain); ?><span class="dashicons dashicons-info tooltip"><span class="tooltip-text"><span class="inline-text"><?php echo sprintf(__('<a href="%s">Preload font files</a> prior to page rendering to improve perceived loading times. Only use preload for font files that are used above the fold.', $this->plugin_text_domain), 'https://daan.dev/blog/how-to/wordpress-google-fonts/#3-2-preloading-font-files-above-the-fold'); ?></span><img width="230" class="illustration" src="<?= plugin_dir_url(OMGF_PLUGIN_FILE) . 'assets/images/above-the-fold.png'; ?>" /></span></span></th>
|
275 |
<th><?= __('Do not load', $this->plugin_text_domain); ?></th>
|
276 |
<th><?= __('Fallback Font Stack (Pro)', $this->plugin_text_domain); ?></th>
|
277 |
+
<th><?= __('Replace (Pro)', $this->plugin_text_domain); ?><span class="dashicons dashicons-info tooltip"><span class="tooltip-text"><span class="inline-text"><?php echo sprintf(__('When the <a href="%s">Replace option</a> is checked, the selected Fallback Font Stack will replace the corresponding Google Font family, instead of functioning as a fallback.', $this->plugin_text_domain), 'https://daan.dev/blog/how-to/wordpress-google-fonts/#7-4-specify-a-fallback-font-stack'); ?></span></span></span></th>
|
278 |
</tr>
|
279 |
</thead>
|
280 |
<?php
|
includes/class-admin.php
CHANGED
@@ -13,7 +13,7 @@ defined('ABSPATH') || exit;
|
|
13 |
* @package : OMGF
|
14 |
* @author : Daan van den Bergh
|
15 |
* @copyright: © 2022 Daan van den Bergh
|
16 |
-
* @url : https://
|
17 |
* * * * * * * * * * * * * * * * * * * */
|
18 |
|
19 |
class OMGF_Admin
|
13 |
* @package : OMGF
|
14 |
* @author : Daan van den Bergh
|
15 |
* @copyright: © 2022 Daan van den Bergh
|
16 |
+
* @url : https://daan.dev
|
17 |
* * * * * * * * * * * * * * * * * * * */
|
18 |
|
19 |
class OMGF_Admin
|
includes/class-ajax.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
-
* @url : https://
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
+
* @url : https://daan.dev
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
includes/class-download.php
CHANGED
@@ -13,7 +13,7 @@ defined('ABSPATH') || exit;
|
|
13 |
* @package : OMGF
|
14 |
* @author : Daan van den Bergh
|
15 |
* @copyright: © 2022 Daan van den Bergh
|
16 |
-
* @url : https://
|
17 |
* * * * * * * * * * * * * * * * * * * */
|
18 |
|
19 |
class OMGF_Download
|
13 |
* @package : OMGF
|
14 |
* @author : Daan van den Bergh
|
15 |
* @copyright: © 2022 Daan van den Bergh
|
16 |
+
* @url : https://daan.dev
|
17 |
* * * * * * * * * * * * * * * * * * * */
|
18 |
|
19 |
class OMGF_Download
|
includes/class-omgf.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
-
* @url : https://
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
@@ -52,7 +52,7 @@ class OMGF
|
|
52 |
{
|
53 |
/** Prevents undefined constant in OMGF Pro, if its not at version v3.3.0 (yet) */
|
54 |
define('OMGF_OPTIMIZATION_MODE', false);
|
55 |
-
define('OMGF_SITE_URL', 'https://
|
56 |
define('OMGF_CACHE_IS_STALE', esc_attr(get_option(OMGF_Admin_Settings::OMGF_CACHE_IS_STALE)));
|
57 |
define('OMGF_CURRENT_DB_VERSION', esc_attr(get_option(OMGF_Admin_Settings::OMGF_CURRENT_DB_VERSION)));
|
58 |
define('OMGF_DISPLAY_OPTION', esc_attr(get_option(OMGF_Admin_Settings::OMGF_OPTIMIZE_SETTING_DISPLAY_OPTION, 'swap')) ?: 'swap');
|
@@ -161,7 +161,7 @@ class OMGF
|
|
161 |
$new_version = $plugin['new_version'];
|
162 |
|
163 |
if (version_compare($current_version, $new_version, '<')) {
|
164 |
-
$response = wp_remote_get('https://
|
165 |
|
166 |
if (is_wp_error($response)) {
|
167 |
return;
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
+
* @url : https://daan.dev
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
52 |
{
|
53 |
/** Prevents undefined constant in OMGF Pro, if its not at version v3.3.0 (yet) */
|
54 |
define('OMGF_OPTIMIZATION_MODE', false);
|
55 |
+
define('OMGF_SITE_URL', 'https://daan.dev');
|
56 |
define('OMGF_CACHE_IS_STALE', esc_attr(get_option(OMGF_Admin_Settings::OMGF_CACHE_IS_STALE)));
|
57 |
define('OMGF_CURRENT_DB_VERSION', esc_attr(get_option(OMGF_Admin_Settings::OMGF_CURRENT_DB_VERSION)));
|
58 |
define('OMGF_DISPLAY_OPTION', esc_attr(get_option(OMGF_Admin_Settings::OMGF_OPTIMIZE_SETTING_DISPLAY_OPTION, 'swap')) ?: 'swap');
|
161 |
$new_version = $plugin['new_version'];
|
162 |
|
163 |
if (version_compare($current_version, $new_version, '<')) {
|
164 |
+
$response = wp_remote_get('https://daan.dev/omgf-update-notices.json');
|
165 |
|
166 |
if (is_wp_error($response)) {
|
167 |
return;
|
includes/class-optimize.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
-
* @url : https://
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
+
* @url : https://daan.dev
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
includes/class-stylesheet-generator.php
CHANGED
@@ -13,7 +13,7 @@ defined('ABSPATH') || exit;
|
|
13 |
* @package : OMGF
|
14 |
* @author : Daan van den Bergh
|
15 |
* @copyright: © 2022 Daan van den Bergh
|
16 |
-
* @url : https://
|
17 |
* * * * * * * * * * * * * * * * * * * */
|
18 |
|
19 |
class OMGF_StylesheetGenerator
|
@@ -54,7 +54,7 @@ class OMGF_StylesheetGenerator
|
|
54 |
*/
|
55 |
$file_types = apply_filters('omgf_include_file_types', ['woff2', 'woff', 'eot', 'ttf', 'svg']);
|
56 |
$font_display = OMGF_DISPLAY_OPTION;
|
57 |
-
$stylesheet = "/**\n * Auto Generated by $this->plugin\n * @author: Daan van den Bergh\n * @url: https://
|
58 |
|
59 |
foreach ($this->fonts as $font) {
|
60 |
/**
|
13 |
* @package : OMGF
|
14 |
* @author : Daan van den Bergh
|
15 |
* @copyright: © 2022 Daan van den Bergh
|
16 |
+
* @url : https://daan.dev
|
17 |
* * * * * * * * * * * * * * * * * * * */
|
18 |
|
19 |
class OMGF_StylesheetGenerator
|
54 |
*/
|
55 |
$file_types = apply_filters('omgf_include_file_types', ['woff2', 'woff', 'eot', 'ttf', 'svg']);
|
56 |
$font_display = OMGF_DISPLAY_OPTION;
|
57 |
+
$stylesheet = "/**\n * Auto Generated by $this->plugin\n * @author: Daan van den Bergh\n * @url: https://daan.dev\n */\n\n";
|
58 |
|
59 |
foreach ($this->fonts as $font) {
|
60 |
/**
|
includes/class-uninstall.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
-
* @url : https://
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
11 |
* @package : OMGF
|
12 |
* @author : Daan van den Bergh
|
13 |
* @copyright: © 2022 Daan van den Bergh
|
14 |
+
* @url : https://daan.dev
|
15 |
* * * * * * * * * * * * * * * * * * * */
|
16 |
|
17 |
defined('ABSPATH') || exit;
|
includes/frontend/class-process.php
CHANGED
@@ -13,7 +13,7 @@ defined('ABSPATH') || exit;
|
|
13 |
* @package : OMGF
|
14 |
* @author : Daan van den Bergh
|
15 |
* @copyright: © 2022 Daan van den Bergh
|
16 |
-
* @url : https://
|
17 |
* * * * * * * * * * * * * * * * * * * */
|
18 |
class OMGF_Frontend_Process
|
19 |
{
|
13 |
* @package : OMGF
|
14 |
* @author : Daan van den Bergh
|
15 |
* @copyright: © 2022 Daan van den Bergh
|
16 |
+
* @url : https://daan.dev
|
17 |
* * * * * * * * * * * * * * * * * * * */
|
18 |
class OMGF_Frontend_Process
|
19 |
{
|
includes/optimize/class-run.php
CHANGED
@@ -13,7 +13,7 @@ defined('ABSPATH') || exit;
|
|
13 |
* @package : OMGF
|
14 |
* @author : Daan van den Bergh
|
15 |
* @copyright: © 2022 Daan van den Bergh
|
16 |
-
* @url : https://
|
17 |
* * * * * * * * * * * * * * * * * * * */
|
18 |
|
19 |
class OMGF_Optimize_Run
|
13 |
* @package : OMGF
|
14 |
* @author : Daan van den Bergh
|
15 |
* @copyright: © 2022 Daan van den Bergh
|
16 |
+
* @url : https://daan.dev
|
17 |
* * * * * * * * * * * * * * * * * * * */
|
18 |
|
19 |
class OMGF_Optimize_Run
|
readme.md
CHANGED
@@ -43,7 +43,7 @@ All Google Fonts are listed in the **Manage Optimized Fonts** section of OMGF's
|
|
43 |
- Set a relative path to easily migrate from development/staging areas to production/live, or
|
44 |
- Anything you like!
|
45 |
|
46 |
-
*[Purchase OMGF Pro](https://
|
47 |
|
48 |
## Installation
|
49 |
|
@@ -61,7 +61,7 @@ All Google Fonts are listed in the **Manage Optimized Fonts** section of OMGF's
|
|
61 |
|
62 |
## Frequently Asked Questions
|
63 |
|
64 |
-
For the FAQ, [click here](https://
|
65 |
|
66 |
## Support
|
67 |
|
43 |
- Set a relative path to easily migrate from development/staging areas to production/live, or
|
44 |
- Anything you like!
|
45 |
|
46 |
+
*[Purchase OMGF Pro](https://daan.dev/wordpress/omgf-pro/) | [Documentation](https://daan.dev/docs/omgf-pro/) | [Tested Plugins & Themes](https://daan.dev/docs/omgf-pro/tested-themes-plugins/)*
|
47 |
|
48 |
## Installation
|
49 |
|
61 |
|
62 |
## Frequently Asked Questions
|
63 |
|
64 |
+
For the FAQ, [click here](https://daan.dev/docs/omgf-pro-faq).
|
65 |
|
66 |
## Support
|
67 |
|
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: 6.0
|
6 |
-
Stable tag: 5.2.
|
7 |
Requires PHP: 7.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -51,7 +51,7 @@ All Google Fonts are listed in the **Manage Optimized Fonts** section of OMGF's
|
|
51 |
- Set a relative path to easily migrate from development/staging areas to production/live, or
|
52 |
- Anything you like!
|
53 |
|
54 |
-
*[Purchase OMGF Pro](https://
|
55 |
|
56 |
== Installation ==
|
57 |
|
@@ -59,11 +59,11 @@ All Google Fonts are listed in the **Manage Optimized Fonts** section of OMGF's
|
|
59 |
2. Activate the plugin through the 'Plugins' screen in WordPress
|
60 |
3. Use the Settings -> Optimize Google Fonts screen to configure the plugin
|
61 |
|
62 |
-
For a more comprehensive guide on configuring OMGF, check out the [user manual](https://
|
63 |
|
64 |
== Frequently Asked Questions ==
|
65 |
|
66 |
-
For the FAQ, [click here](https://
|
67 |
|
68 |
== Screenshots ==
|
69 |
|
@@ -75,6 +75,9 @@ For the FAQ, [click here](https://ffw.press/docs/omgf-pro-faq/).
|
|
75 |
|
76 |
== Changelog ==
|
77 |
|
|
|
|
|
|
|
78 |
= 5.2.1 | June 25th, 2022 =
|
79 |
* Fixed: shorthand syntax (r,i,b,bi) is now parsed correctly.
|
80 |
* Added: Basic Variable Fonts support (full support coming in 5.3.0!)
|
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: 6.0
|
6 |
+
Stable tag: 5.2.2
|
7 |
Requires PHP: 7.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
51 |
- Set a relative path to easily migrate from development/staging areas to production/live, or
|
52 |
- Anything you like!
|
53 |
|
54 |
+
*[Purchase OMGF Pro](https://daan.dev/wordpress/omgf-pro/) | [Documentation](https://daan.dev/docs/omgf-pro/) | [Tested Plugins & Themes](https://daan.dev/docs/omgf-pro/tested-themes-plugins/)*
|
55 |
|
56 |
== Installation ==
|
57 |
|
59 |
2. Activate the plugin through the 'Plugins' screen in WordPress
|
60 |
3. Use the Settings -> Optimize Google Fonts screen to configure the plugin
|
61 |
|
62 |
+
For a more comprehensive guide on configuring OMGF, check out the [user manual](https://daan.dev/docs/omgf-pro/)
|
63 |
|
64 |
== Frequently Asked Questions ==
|
65 |
|
66 |
+
For the FAQ, [click here](https://daan.dev/docs/omgf-pro-faq/).
|
67 |
|
68 |
== Screenshots ==
|
69 |
|
75 |
|
76 |
== Changelog ==
|
77 |
|
78 |
+
= 5.2.2 | June 28th, 2022 =
|
79 |
+
* Fixed: updated links from ffw.press to daan.dev after the migration.
|
80 |
+
|
81 |
= 5.2.1 | June 25th, 2022 =
|
82 |
* Fixed: shorthand syntax (r,i,b,bi) is now parsed correctly.
|
83 |
* Added: Basic Variable Fonts support (full support coming in 5.3.0!)
|