Local Google Fonts - Version 0.8

Version Description

Download this release

Release Info

Developer everpress
Plugin Icon 128x128 Local Google Fonts
Version 0.8
Comparing to
See all releases

Code changes from version 0.7 to 0.8

README.md CHANGED
@@ -2,9 +2,9 @@
2
 
3
  Contributors: everpress
4
  Tags: googlefonts, google, fonts, gdpr, lgf, font, speed
5
- Requires at least: 4.2
6
  Tested up to: 6.0
7
- Stable tag: 0.7
8
  Requires PHP: 5.6+
9
  License: GPLv2 or later
10
  Author: EverPress
@@ -12,7 +12,7 @@ Author URI: https://everpress.co
12
 
13
  ## Description
14
 
15
- Host your used Google fonts on your server and make your site more GDPR compliant.
16
 
17
  About 50 mio[\*](https://trends.builtwith.com/websitelist/Google-Font-API) sites use Google Fonts and in January 2022 a German court has ruled that using Google Fonts is a violation of Europe’s GDPR (General Data Protection Regulation).
18
 
@@ -60,6 +60,12 @@ The plugin currently only checks fonts embedded via [`wp_enqueue_style`](https:/
60
 
61
  ## Changelog
62
 
 
 
 
 
 
 
63
  ### 0.7
64
 
65
  - better handling of multiple "family" arguments in the URL
2
 
3
  Contributors: everpress
4
  Tags: googlefonts, google, fonts, gdpr, lgf, font, speed
5
+ Requires at least: 4.6
6
  Tested up to: 6.0
7
+ Stable tag: 0.8
8
  Requires PHP: 5.6+
9
  License: GPLv2 or later
10
  Author: EverPress
12
 
13
  ## Description
14
 
15
+ Host your used Google fonts on your server and make your site more GDPR compliant 💯.
16
 
17
  About 50 mio[\*](https://trends.builtwith.com/websitelist/Google-Font-API) sites use Google Fonts and in January 2022 a German court has ruled that using Google Fonts is a violation of Europe’s GDPR (General Data Protection Regulation).
18
 
60
 
61
  ## Changelog
62
 
63
+ ### 0.8
64
+
65
+ - updated required WP version to 4.6
66
+ - remove Text Domain header
67
+ - added missing translatable strings
68
+
69
  ### 0.7
70
 
71
  - better handling of multiple "family" arguments in the URL
includes/class-local-google-fonts-admin.php CHANGED
@@ -15,7 +15,7 @@ class LGF_Admin {
15
  }
16
 
17
  public static function get_instance() {
18
- if ( self::$instance == null ) {
19
  self::$instance = new LGF_Admin();
20
  }
21
 
@@ -204,7 +204,7 @@ class LGF_Admin {
204
 
205
  ?>
206
  <div class="wrap">
207
- <h1><?php printf( esc_html__( _n( '%d Google font source found on your site.', '%d Google font sources found on your site.', $count, 'mailster' ) ), $count ); ?></h1>
208
 
209
  <p><?php esc_html_e( 'This page shows all discovered Google Fonts over time. If you miss a font start browsing your front end so they end up showing here.', 'local-google-fonts' ); ?></p>
210
 
@@ -262,9 +262,9 @@ class LGF_Admin {
262
  </td>
263
  <td>
264
  <?php if ( is_dir( $folder . '/' . $data['id'] ) ) : ?>
265
- <strong class="">✔</strong> loaded, served from your server
266
  <?php else : ?>
267
- <strong class="wp-ui-text-notification">✕</strong> not loaded, served from Google servers
268
  <?php endif; ?>
269
 
270
  </td>
15
  }
16
 
17
  public static function get_instance() {
18
+ if ( self::$instance === null ) {
19
  self::$instance = new LGF_Admin();
20
  }
21
 
204
 
205
  ?>
206
  <div class="wrap">
207
+ <h1><?php printf( esc_html__( _n( '%d Google font source found on your site.', '%d Google font sources found on your site.', $count, 'local-google-font' ) ), $count ); ?></h1>
208
 
209
  <p><?php esc_html_e( 'This page shows all discovered Google Fonts over time. If you miss a font start browsing your front end so they end up showing here.', 'local-google-fonts' ); ?></p>
210
 
262
  </td>
263
  <td>
264
  <?php if ( is_dir( $folder . '/' . $data['id'] ) ) : ?>
265
+ <?php printf( '%s %s', '<strong>✔</strong>', esc_html__( 'loaded, served from your server', 'local-google-fonts' ) ); ?>
266
  <?php else : ?>
267
+ <?php printf( '%s %s', '<strong class="wp-ui-text-notification">✕</strong>', esc_html__( 'not loaded, served from Google servers', 'local-google-fonts' ) ); ?>
268
  <?php endif; ?>
269
 
270
  </td>
includes/class-local-google-fonts.php CHANGED
@@ -15,8 +15,6 @@ class LGF {
15
 
16
  add_filter( 'style_loader_src', array( $this, 'switch_stylesheet_src' ), 10, 2 );
17
  add_filter( 'switch_theme', array( $this, 'clear' ) );
18
- add_filter( 'deactivated_plugin', array( $this, 'clear_option' ) );
19
- add_filter( 'activated_plugin', array( $this, 'clear_option' ) );
20
  add_filter( 'wp_resource_hints', array( $this, 'remove_dns_prefetch' ), 10, 2 );
21
 
22
  add_filter( 'local_google_fonts_replace_in_content', array( $this, 'replace_in_content' ) );
15
 
16
  add_filter( 'style_loader_src', array( $this, 'switch_stylesheet_src' ), 10, 2 );
17
  add_filter( 'switch_theme', array( $this, 'clear' ) );
 
 
18
  add_filter( 'wp_resource_hints', array( $this, 'remove_dns_prefetch' ), 10, 2 );
19
 
20
  add_filter( 'local_google_fonts_replace_in_content', array( $this, 'replace_in_content' ) );
local-google-fonts.php CHANGED
@@ -2,10 +2,9 @@
2
  /*
3
  Plugin Name: Local Google Fonts
4
  Description: Host your used Google fonts on your server and make your site GDPR compliant.
5
- Version: 0.7
6
  Author: EverPress
7
  Author URI: https://everpress.co
8
- Text Domain: local-google-fonts
9
  License: GPLv2 or later
10
  */
11
 
2
  /*
3
  Plugin Name: Local Google Fonts
4
  Description: Host your used Google fonts on your server and make your site GDPR compliant.
5
+ Version: 0.8
6
  Author: EverPress
7
  Author URI: https://everpress.co
 
8
  License: GPLv2 or later
9
  */
10