Local Google Fonts - Version 0.14

Version Description

Download this release

Release Info

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

Code changes from version 0.13 to 0.14

README.md CHANGED
@@ -4,7 +4,7 @@ Contributors: everpress, xaverb
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.13
8
  Requires PHP: 5.6+
9
  License: GPLv2 or later
10
  Author: EverPress
@@ -83,6 +83,10 @@ You may have loaded a subset which doesn't included required characters. Check a
83
 
84
  ## Changelog
85
 
 
 
 
 
86
  ### 0.13
87
 
88
  - improved: better explanations on errors.
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.14
8
  Requires PHP: 5.6+
9
  License: GPLv2 or later
10
  Author: EverPress
83
 
84
  ## Changelog
85
 
86
+ ### 0.14
87
+
88
+ - added info if https://google-webfonts-helper.herokuapp.com/ is down
89
+
90
  ### 0.13
91
 
92
  - improved: better explanations on errors.
includes/class-local-google-fonts-admin.php CHANGED
@@ -340,6 +340,8 @@ class LGF_Admin {
340
  $body = wp_remote_retrieve_body( $response );
341
  $info = json_decode( $body );
342
  set_transient( $transient_key, $info, HOUR_IN_SECONDS );
 
 
343
  } else {
344
  continue;
345
  }
340
  $body = wp_remote_retrieve_body( $response );
341
  $info = json_decode( $body );
342
  set_transient( $transient_key, $info, HOUR_IN_SECONDS );
343
+ } elseif ( 503 === $code ) {
344
+ return new \WP_Error( 'service_not_available', sprintf( esc_html__( '%s seems to be down right now. Please try again later.', 'local-google-fonts' ), 'https://google-webfonts-helper.herokuapp.com/' ) );
345
  } else {
346
  continue;
347
  }
local-google-fonts.php CHANGED
@@ -2,7 +2,7 @@
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.13
6
  Author: EverPress
7
  Author URI: https://everpress.co
8
  License: GPLv2 or later
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.14
6
  Author: EverPress
7
  Author URI: https://everpress.co
8
  License: GPLv2 or later