Google Fonts for WordPress - Version 3.0.17

Version Description

Download this release

Release Info

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

Code changes from version 3.0.16 to 3.0.17

changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 3.0.16 =
2
 
3
  * Fix footer heading selectors.
1
+ = 3.0.17 =
2
+
3
+ * Add filters to font control choices
4
+
5
  = 3.0.16 =
6
 
7
  * Fix footer heading selectors.
class-olympus-google-fonts.php CHANGED
@@ -39,7 +39,7 @@ class Olympus_Google_Fonts {
39
  */
40
  public function constants() {
41
  if ( ! defined( 'OGF_VERSION' ) ) {
42
- define( 'OGF_VERSION', '3.0.16' );
43
  }
44
 
45
  if ( ! defined( 'OGF_DIR_PATH' ) ) {
39
  */
40
  public function constants() {
41
  if ( ! defined( 'OGF_VERSION' ) ) {
42
+ define( 'OGF_VERSION', '3.0.17' );
43
  }
44
 
45
  if ( ! defined( 'OGF_DIR_PATH' ) ) {
includes/customizer/controls/class-ogf-customize-typography-control.php CHANGED
@@ -192,7 +192,6 @@ class OGF_Customize_Typography_Control extends WP_Customize_Control {
192
  * @return array Available font variants.
193
  */
194
  public function get_font_weight_choices( $font ) {
195
-
196
  $all_variants = ogf_font_variants();
197
 
198
  if ( 'default' === $font ) {
@@ -228,12 +227,13 @@ class OGF_Customize_Typography_Control extends WP_Customize_Control {
228
  return $new_variants;
229
  }
230
 
231
- return array(
232
  '0' => esc_html__( '- Default -', 'olympus-google-fonts' ),
233
  '400' => esc_html__( 'Normal', 'olympus-google-fonts' ),
234
  '700' => esc_html__( 'Bold', 'olympus-google-fonts' ),
235
  );
236
 
 
237
  }
238
 
239
  /**
@@ -242,12 +242,14 @@ class OGF_Customize_Typography_Control extends WP_Customize_Control {
242
  * @return array CSS font-style values.
243
  */
244
  public function get_font_style_choices() {
245
- return array(
246
  'default' => esc_html__( '- Default -', 'olympus-google-fonts' ),
247
  'normal' => esc_html__( 'Normal', 'olympus-google-fonts' ),
248
  'italic' => esc_html__( 'Italic', 'olympus-google-fonts' ),
249
  'oblique' => esc_html__( 'Oblique', 'olympus-google-fonts' ),
250
  );
 
 
251
  }
252
 
253
  /**
@@ -256,12 +258,14 @@ class OGF_Customize_Typography_Control extends WP_Customize_Control {
256
  * @return array CSS text-transform values.
257
  */
258
  public function get_text_transform_choices() {
259
- return array(
260
  '' => esc_html__( '- Default -', 'olympus-google-fonts' ),
261
  'capitalize' => esc_html__( 'Capitalize', 'olympus-google-fonts' ),
262
  'uppercase' => esc_html__( 'Uppercase', 'olympus-google-fonts' ),
263
  'lowercase' => esc_html__( 'Lowercase', 'olympus-google-fonts' ),
264
  'none' => esc_html__( 'None', 'olympus-google-fonts' ),
265
  );
 
 
266
  }
267
  }
192
  * @return array Available font variants.
193
  */
194
  public function get_font_weight_choices( $font ) {
 
195
  $all_variants = ogf_font_variants();
196
 
197
  if ( 'default' === $font ) {
227
  return $new_variants;
228
  }
229
 
230
+ $choices = array(
231
  '0' => esc_html__( '- Default -', 'olympus-google-fonts' ),
232
  '400' => esc_html__( 'Normal', 'olympus-google-fonts' ),
233
  '700' => esc_html__( 'Bold', 'olympus-google-fonts' ),
234
  );
235
 
236
+ return apply_filters( 'ogf_default_font_weight_choices', $choices );
237
  }
238
 
239
  /**
242
  * @return array CSS font-style values.
243
  */
244
  public function get_font_style_choices() {
245
+ $choices = array(
246
  'default' => esc_html__( '- Default -', 'olympus-google-fonts' ),
247
  'normal' => esc_html__( 'Normal', 'olympus-google-fonts' ),
248
  'italic' => esc_html__( 'Italic', 'olympus-google-fonts' ),
249
  'oblique' => esc_html__( 'Oblique', 'olympus-google-fonts' ),
250
  );
251
+
252
+ return apply_filters( 'ogf_default_font_style_choices', $choices );
253
  }
254
 
255
  /**
258
  * @return array CSS text-transform values.
259
  */
260
  public function get_text_transform_choices() {
261
+ $choices = array(
262
  '' => esc_html__( '- Default -', 'olympus-google-fonts' ),
263
  'capitalize' => esc_html__( 'Capitalize', 'olympus-google-fonts' ),
264
  'uppercase' => esc_html__( 'Uppercase', 'olympus-google-fonts' ),
265
  'lowercase' => esc_html__( 'Lowercase', 'olympus-google-fonts' ),
266
  'none' => esc_html__( 'None', 'olympus-google-fonts' ),
267
  );
268
+
269
+ return apply_filters( 'ogf_default_text_transform_choices', $choices );
270
  }
271
  }
olympus-google-fonts.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin Name: Fonts Plugin | Google Fonts Typography
6
  * Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
7
  * Description: The easiest to use Google Fonts Plugin. No coding required. Optimized for Speed. 1000+ font choices.
8
- * Version: 3.0.16
9
  * Author: Fonts Plugin
10
  * Author URI: https://fontsplugin.com/?utm_source=wporg&utm_medium=readme&utm_campaign=description
11
  * Text Domain: olympus-google-fonts
5
  * Plugin Name: Fonts Plugin | Google Fonts Typography
6
  * Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
7
  * Description: The easiest to use Google Fonts Plugin. No coding required. Optimized for Speed. 1000+ font choices.
8
+ * Version: 3.0.17
9
  * Author: Fonts Plugin
10
  * Author URI: https://fontsplugin.com/?utm_source=wporg&utm_medium=readme&utm_campaign=description
11
  * Text Domain: olympus-google-fonts
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://fontsplugin.com/#pricing
5
  Requires at least: 4.0
6
  Tested up to: 5.9
7
  License: GPLv2 or later
8
- Stable tag: 3.0.16
9
 
10
  The easiest to use Google Fonts Plugin. No coding required. Optimized for Speed. 1000+ font choices.
11
 
5
  Requires at least: 4.0
6
  Tested up to: 5.9
7
  License: GPLv2 or later
8
+ Stable tag: 3.0.17
9
 
10
  The easiest to use Google Fonts Plugin. No coding required. Optimized for Speed. 1000+ font choices.
11