Google Fonts for WordPress - Version 1.8.1

Version Description

Download this release

Release Info

Developer DannyCooper
Plugin Icon 128x128 Google Fonts for WordPress
Version 1.8.1
Comparing to
See all releases

Code changes from version 1.8.0 to 1.8.1

changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 1.8.0 =
2
 
3
  * Add 'Load Fonts for CSS' option.
1
+ = 1.8.1 =
2
+
3
+ * Fix for "Invalid argument supplied for foreach()" error
4
+
5
  = 1.8.0 =
6
 
7
  * Add 'Load Fonts for CSS' option.
includes/class-ogf-fonts.php CHANGED
@@ -59,8 +59,10 @@ class OGF_Fonts {
59
 
60
  $load_fonts_css = get_theme_mod( 'ogf_load_fonts', array() );
61
 
62
- foreach ( $load_fonts_css as $key => $value ) {
63
- $this->choices[] = $value;
 
 
64
  }
65
 
66
  }
59
 
60
  $load_fonts_css = get_theme_mod( 'ogf_load_fonts', array() );
61
 
62
+ if ( is_array( $load_fonts_css ) ) {
63
+ foreach ( $load_fonts_css as $key => $value ) {
64
+ $this->choices[] = $value;
65
+ }
66
  }
67
 
68
  }
olympus-google-fonts.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin Name: Google Fonts Typography
6
  * Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
7
  * Description: The easiest to use Google Fonts typography plugin. No coding required. 870+ font choices.
8
- * Version: 1.8.0
9
  * Author: Fonts Plugin
10
  * Author URI: https://fontsplugin.com/?utm_source=wporg&utm_campaign=heading
11
  * Text Domain: olympus-google-fonts
@@ -18,7 +18,7 @@
18
  * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
19
  */
20
 
21
- define( 'OGF_VERSION', '1.8.0' );
22
  define( 'OGF_DIR_PATH', plugin_dir_path( __FILE__ ) );
23
  define( 'OGF_DIR_URL', plugin_dir_url( __FILE__ ) );
24
 
5
  * Plugin Name: Google Fonts Typography
6
  * Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
7
  * Description: The easiest to use Google Fonts typography plugin. No coding required. 870+ font choices.
8
+ * Version: 1.8.1
9
  * Author: Fonts Plugin
10
  * Author URI: https://fontsplugin.com/?utm_source=wporg&utm_campaign=heading
11
  * Text Domain: olympus-google-fonts
18
  * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
19
  */
20
 
21
+ define( 'OGF_VERSION', '1.8.1' );
22
  define( 'OGF_DIR_PATH', plugin_dir_path( __FILE__ ) );
23
  define( 'OGF_DIR_URL', plugin_dir_url( __FILE__ ) );
24
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://fontsplugin.com/#pricing
5
  Requires at least: 4.0
6
  Tested up to: 5.2
7
  License: GPLv2 or later
8
- Stable tag: 1.8.0
9
 
10
  The easiest to use Google Fonts Typography Plugin. No coding required. 870+ font choices.
11
 
5
  Requires at least: 4.0
6
  Tested up to: 5.2
7
  License: GPLv2 or later
8
+ Stable tag: 1.8.1
9
 
10
  The easiest to use Google Fonts Typography Plugin. No coding required. 870+ font choices.
11