Google Fonts for WordPress - Version 1.9.2

Version Description

Download this release

Release Info

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

Code changes from version 1.9.1 to 1.9.2

changelog.txt CHANGED
@@ -1,12 +1,16 @@
 
 
 
 
1
  = 1.9.1 =
2
 
3
- * Fix conflict with TinyMCE Advanced plugin
4
 
5
  = 1.9.0 =
6
 
7
- * Update available fonts list
8
- * Add 'Classic Editor' support
9
- * Add Futura font
10
 
11
  = 1.8.4 =
12
 
@@ -14,21 +18,21 @@
14
 
15
  = 1.8.3 =
16
 
17
- * Move 'CSS' setting to 'Advanced' panel
18
- * Add 'Reset' option to 'Debugging' section
19
 
20
  = 1.8.2 =
21
 
22
- * Further improve theme compatibility for basic settings
23
 
24
  = 1.8.1 =
25
 
26
- * Fix for "Invalid argument supplied for foreach()" error
27
 
28
  = 1.8.0 =
29
 
30
  * Add 'Load Fonts for CSS' option.
31
- * Add first implementation of compatibility filter (ThemeGrill)
32
 
33
  = 1.7.6 =
34
 
1
+ = 1.9.2 =
2
+
3
+ * Add system fonts to Classic Editor interface.
4
+
5
  = 1.9.1 =
6
 
7
+ * Fix conflict with TinyMCE Advanced plugin.
8
 
9
  = 1.9.0 =
10
 
11
+ * Update available fonts list.
12
+ * Add 'Classic Editor' support.
13
+ * Add Futura font.
14
 
15
  = 1.8.4 =
16
 
18
 
19
  = 1.8.3 =
20
 
21
+ * Move 'CSS' setting to 'Advanced' panel.
22
+ * Add 'Reset' option to 'Debugging' section.
23
 
24
  = 1.8.2 =
25
 
26
+ * Further improve theme compatibility for basic settings.
27
 
28
  = 1.8.1 =
29
 
30
+ * Fix for "Invalid argument supplied for foreach()" error.
31
 
32
  = 1.8.0 =
33
 
34
  * Add 'Load Fonts for CSS' option.
35
+ * Add first implementation of compatibility filter (ThemeGrill).
36
 
37
  = 1.7.6 =
38
 
includes/class-ogf-classic-editor.php CHANGED
@@ -71,17 +71,18 @@ if ( ! class_exists( 'OGF_Classic_Editor' ) ) :
71
  /**
72
  * Add fonts to the classic editor list.
73
  *
74
- * @param array $default The default fonts.
75
  */
76
- public function tinymce_add_fonts( $default ) {
77
- $default = '';
78
  $choices = $this->ogf_fonts->choices;
79
  foreach ( $choices as $font ) {
80
  if ( ! ogf_is_system_font( $font ) ) {
81
- $default .= $this->ogf_fonts->get_font_name( $font ) . '=' . $this->ogf_fonts->get_font_name( $font ) . ';';
82
  }
83
  }
84
- return $default;
 
85
  }
86
 
87
  /**
71
  /**
72
  * Add fonts to the classic editor list.
73
  *
74
+ * @param array $old_default The default fonts.
75
  */
76
+ public function tinymce_add_fonts( $old_default ) {
77
+ $new_default = '';
78
  $choices = $this->ogf_fonts->choices;
79
  foreach ( $choices as $font ) {
80
  if ( ! ogf_is_system_font( $font ) ) {
81
+ $new_default .= $this->ogf_fonts->get_font_name( $font ) . '=' . $this->ogf_fonts->get_font_name( $font ) . ';';
82
  }
83
  }
84
+ $new_default .= $old_default;
85
+ return $new_default;
86
  }
87
 
88
  /**
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.9.1
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.9.1' );
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.9.2
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.9.2' );
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.9.1
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.9.2
9
 
10
  The easiest to use Google Fonts Typography Plugin. No coding required. 870+ font choices.
11