Version Description
Download this release
Release Info
Developer | DannyCooper |
Plugin | Google Fonts for WordPress |
Version | 1.5.3 |
Comparing to | |
See all releases |
Code changes from version 1.5.1 to 1.5.3
includes/customizer/controls/class-ogf-customize-typography-control.php
CHANGED
@@ -252,6 +252,7 @@ class OGF_Customize_Typography_Control extends WP_Customize_Control {
|
|
252 |
*/
|
253 |
public function get_font_style_choices() {
|
254 |
return array(
|
|
|
255 |
'normal' => esc_html__( 'Normal', 'olympus-google-fonts' ),
|
256 |
'italic' => esc_html__( 'Italic', 'olympus-google-fonts' ),
|
257 |
'oblique' => esc_html__( 'Oblique', 'olympus-google-fonts' ),
|
252 |
*/
|
253 |
public function get_font_style_choices() {
|
254 |
return array(
|
255 |
+
'default' => esc_html__( '- Default -', 'olympus-google-fonts' ),
|
256 |
'normal' => esc_html__( 'Normal', 'olympus-google-fonts' ),
|
257 |
'italic' => esc_html__( 'Italic', 'olympus-google-fonts' ),
|
258 |
'oblique' => esc_html__( 'Oblique', 'olympus-google-fonts' ),
|
includes/customizer/output-css.php
CHANGED
@@ -81,7 +81,7 @@ function ogf_generate_css( $selector, $option_name ) {
|
|
81 |
}
|
82 |
|
83 |
// Return font-style CSS.
|
84 |
-
if ( $style && '
|
85 |
$return .= sprintf(
|
86 |
'font-style: %s;' . PHP_EOL,
|
87 |
esc_attr( $style ) . ogf_is_forced()
|
81 |
}
|
82 |
|
83 |
// Return font-style CSS.
|
84 |
+
if ( $style && 'default' !== $style ) {
|
85 |
$return .= sprintf(
|
86 |
'font-style: %s;' . PHP_EOL,
|
87 |
esc_attr( $style ) . ogf_is_forced()
|
includes/customizer/settings.php
CHANGED
@@ -69,7 +69,7 @@ function ogf_customize_register( $wp_customize ) {
|
|
69 |
$wp_customize->add_setting(
|
70 |
$id . '_font_style',
|
71 |
array(
|
72 |
-
'default' => '
|
73 |
'transport' => 'postMessage',
|
74 |
)
|
75 |
);
|
69 |
$wp_customize->add_setting(
|
70 |
$id . '_font_style',
|
71 |
array(
|
72 |
+
'default' => 'default',
|
73 |
'transport' => 'postMessage',
|
74 |
)
|
75 |
);
|
olympus-google-fonts.php
CHANGED
@@ -5,9 +5,9 @@
|
|
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.5.
|
9 |
-
* Author:
|
10 |
-
* Author URI: https://fontsplugin.com
|
11 |
* Text Domain: olympus-google-fonts
|
12 |
* License: GPL-2.0+
|
13 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
@@ -18,7 +18,7 @@
|
|
18 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
19 |
*/
|
20 |
|
21 |
-
define( 'OGF_VERSION', '1.5.
|
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.5.3
|
9 |
+
* Author: Fonts Plugin
|
10 |
+
* Author URI: https://fontsplugin.com/?utm_source=wporg&utm_campaign=heading
|
11 |
* Text Domain: olympus-google-fonts
|
12 |
* License: GPL-2.0+
|
13 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
18 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
19 |
*/
|
20 |
|
21 |
+
define( 'OGF_VERSION', '1.5.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.1
|
7 |
License: GPLv2 or later
|
8 |
-
Stable tag: 1.5.
|
9 |
|
10 |
The easiest to use Google Fonts Plugin. No coding required. 870+ font choices.
|
11 |
|
@@ -32,6 +32,7 @@ The full Google Fonts library can be found here - [Google Fonts](https://fonts.g
|
|
32 |
* **SEO-Friendly** (Search Engine Optimization).
|
33 |
* Tested with **PHP7**
|
34 |
* Selective Font Loading
|
|
|
35 |
|
36 |
> Note: some features are Premium. Which means you need to upgrade to unlock those features. You can upgrade here: [Google Fonts Pro](https://fontsplugin.com/upgrade/?utm_source=wporg&utm_campaign=upgrade)
|
37 |
|
@@ -47,7 +48,7 @@ The Google Fonts for WordPress plugin will work with all WordPress themes and ha
|
|
47 |
|
48 |
### Further Reading
|
49 |
|
50 |
-
For more info on
|
51 |
|
52 |
* [Documentation](https://fontsplugin.com/docs/)
|
53 |
* [Font Combinations](https://fontsplugin.com/font-combinations/)
|
@@ -94,10 +95,4 @@ We are 99.99% certain it will, if it doesn't then please create a [support ticke
|
|
94 |
|
95 |
== Changelog ==
|
96 |
|
97 |
-
|
98 |
-
|
99 |
-
* Speed up load times using preconnect.
|
100 |
-
|
101 |
-
= 1.5.0 =
|
102 |
-
|
103 |
-
* Fix problem with italics not being loaded.
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.1
|
7 |
License: GPLv2 or later
|
8 |
+
Stable tag: 1.5.3
|
9 |
|
10 |
The easiest to use Google Fonts Plugin. No coding required. 870+ font choices.
|
11 |
|
32 |
* **SEO-Friendly** (Search Engine Optimization).
|
33 |
* Tested with **PHP7**
|
34 |
* Selective Font Loading
|
35 |
+
* Preconnect Resource Hints
|
36 |
|
37 |
> Note: some features are Premium. Which means you need to upgrade to unlock those features. You can upgrade here: [Google Fonts Pro](https://fontsplugin.com/upgrade/?utm_source=wporg&utm_campaign=upgrade)
|
38 |
|
48 |
|
49 |
### Further Reading
|
50 |
|
51 |
+
For more info on Google Fonts for Wordpress, check out the following:
|
52 |
|
53 |
* [Documentation](https://fontsplugin.com/docs/)
|
54 |
* [Font Combinations](https://fontsplugin.com/font-combinations/)
|
95 |
|
96 |
== Changelog ==
|
97 |
|
98 |
+
See changelog.txt
|
|
|
|
|
|
|
|
|
|
|
|