Version Description
Download this release
Release Info
Developer | DannyCooper |
Plugin | 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 +4 -0
- includes/class-ogf-fonts.php +4 -2
- olympus-google-fonts.php +2 -2
- readme.txt +1 -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 |
-
|
63 |
-
$
|
|
|
|
|
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.
|
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.
|
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.
|
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 |
|