Version Description
Download this release
Release Info
Developer | DannyCooper |
Plugin | Google Fonts for WordPress |
Version | 1.7.3 |
Comparing to | |
See all releases |
Code changes from version 1.7.2 to 1.7.3
- changelog.txt +4 -0
- includes/class-ogf-fonts.php +9 -3
- includes/customizer/output-css.php +1 -3
- olympus-google-fonts.php +2 -2
- readme.txt +1 -1
changelog.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
= 1.7.2 =
|
2 |
|
3 |
* Add system fonts to the available choices.
|
1 |
+
= 1.7.3 =
|
2 |
+
|
3 |
+
* Compatibility fix for 'Local Hosting' addon.
|
4 |
+
|
5 |
= 1.7.2 =
|
6 |
|
7 |
* Add system fonts to the available choices.
|
includes/class-ogf-fonts.php
CHANGED
@@ -105,12 +105,18 @@ class OGF_Fonts {
|
|
105 |
*/
|
106 |
public function has_custom_fonts() {
|
107 |
|
108 |
-
if (
|
109 |
-
return true;
|
110 |
-
} else {
|
111 |
return false;
|
112 |
}
|
113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
}
|
115 |
|
116 |
/**
|
105 |
*/
|
106 |
public function has_custom_fonts() {
|
107 |
|
108 |
+
if ( empty( $this->choices ) ) {
|
|
|
|
|
109 |
return false;
|
110 |
}
|
111 |
|
112 |
+
foreach ( $this->choices as $choice ) {
|
113 |
+
if ( ! ogf_is_system_font( $choice ) ) {
|
114 |
+
return true;
|
115 |
+
}
|
116 |
+
}
|
117 |
+
|
118 |
+
return false;
|
119 |
+
|
120 |
}
|
121 |
|
122 |
/**
|
includes/customizer/output-css.php
CHANGED
@@ -144,9 +144,7 @@ function ogf_build_font_stack( $font_id ) {
|
|
144 |
|
145 |
if ( array_key_exists( $font_id, $system_fonts ) ) {
|
146 |
|
147 |
-
|
148 |
-
|
149 |
-
return $stack;
|
150 |
|
151 |
}
|
152 |
|
144 |
|
145 |
if ( array_key_exists( $font_id, $system_fonts ) ) {
|
146 |
|
147 |
+
return $system_fonts[ $font_id ]['stack'];
|
|
|
|
|
148 |
|
149 |
}
|
150 |
|
olympus-google-fonts.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin Name: Google Fonts for WordPress
|
6 |
* Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
|
7 |
* Description: The easiest to use Google Fonts plugin. No coding required. 870+ font choices.
|
8 |
-
* Version: 1.7.
|
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.7.
|
22 |
define( 'OGF_DIR_PATH', plugin_dir_path( __FILE__ ) );
|
23 |
define( 'OGF_DIR_URL', plugin_dir_url( __FILE__ ) );
|
24 |
|
5 |
* Plugin Name: Google Fonts for WordPress
|
6 |
* Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
|
7 |
* Description: The easiest to use Google Fonts plugin. No coding required. 870+ font choices.
|
8 |
+
* Version: 1.7.3
|
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.7.3' );
|
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.7.
|
9 |
|
10 |
The easiest to use Google Fonts 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.7.3
|
9 |
|
10 |
The easiest to use Google Fonts Plugin. No coding required. 870+ font choices.
|
11 |
|