Google Fonts for WordPress - Version 2.5.7

Version Description

Download this release

Release Info

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

Code changes from version 2.5.6 to 2.5.7

changelog.txt CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  = 2.5.6 =
2
 
3
  * Code optimization for future improvements.
1
+ = 2.5.7 =
2
+
3
+ * Add control for quotes (blockquotes)
4
+ * Improve compatibility with TwentyTwenty
5
+
6
  = 2.5.6 =
7
 
8
  * Code optimization for future improvements.
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', '2.5.6' );
43
  }
44
 
45
  if ( ! defined( 'OGF_DIR_PATH' ) ) {
39
  */
40
  public function constants() {
41
  if ( ! defined( 'OGF_VERSION' ) ) {
42
+ define( 'OGF_VERSION', '2.5.7' );
43
  }
44
 
45
  if ( ! defined( 'OGF_DIR_PATH' ) ) {
compatibility/thewordpressteam.php CHANGED
@@ -14,8 +14,7 @@
14
  */
15
  function ogf_wporg_elements( $elements ) {
16
  $elements['ogf_body']['selectors'] = 'body, #content, .entry-content, .post-content, .page-content, .post-excerpt, .entry-summary, .entry-excerpt, .widget-area, .widget, .sidebar, #sidebar, footer, .footer, #footer, .site-footer, #site-footer, .entry-content p, .entry-content ol, .entry-content ul, .entry-content dl, .entry-content dt, .widget_text p, .widget_text ol, .widget_text ul, .widget_text dl, .widget_text dt, .widget-content .rssSummary';
17
- $elements['ogf_sidebar_content']['selectors'] = '.widget-area, .widget, .sidebar, #sidebar, .widget_text p, .widget_text ol, .widget_text ul, .widget_text dl, .widget_text dt, .widget-content .rssSummary';
18
-
19
  return $elements;
20
  }
21
  add_filter( 'ogf_elements', 'ogf_wporg_elements' );
14
  */
15
  function ogf_wporg_elements( $elements ) {
16
  $elements['ogf_body']['selectors'] = 'body, #content, .entry-content, .post-content, .page-content, .post-excerpt, .entry-summary, .entry-excerpt, .widget-area, .widget, .sidebar, #sidebar, footer, .footer, #footer, .site-footer, #site-footer, .entry-content p, .entry-content ol, .entry-content ul, .entry-content dl, .entry-content dt, .widget_text p, .widget_text ol, .widget_text ul, .widget_text dl, .widget_text dt, .widget-content .rssSummary';
17
+ $elements['ogf_sidebar_content']['selectors'] = '.widget-area, .widget, .sidebar, #sidebar, .widget_text p, .widget_text ol, .widget_text ul, .widget_text dl, .widget_text dt, .widget-content .rssSummary, .widget_text p, .widget_text ol, .widget_text ul, .widget_text dl, .widget_text dt, .widget-content .rssSummary';
 
18
  return $elements;
19
  }
20
  add_filter( 'ogf_elements', 'ogf_wporg_elements' );
includes/customizer/settings.php CHANGED
@@ -136,9 +136,9 @@ function ogf_customize_register( $wp_customize ) {
136
  $id . '_typography',
137
  array(
138
  'priority' => ( isset( $values['priority'] ) ? absint( $values['priority'] ) : 10 ),
139
- 'label' => esc_attr( $values['label'] ),
140
- 'description' => esc_attr( $values['description'] ),
141
- 'section' => esc_attr( $values['section'] ),
142
  'settings' => array(
143
  'family' => $id . '_font',
144
  'weight' => $id . '_font_weight',
136
  $id . '_typography',
137
  array(
138
  'priority' => ( isset( $values['priority'] ) ? absint( $values['priority'] ) : 10 ),
139
+ 'label' => ( isset( $values['label'] ) ? esc_attr( $values['label'] ) : '' ),
140
+ 'description' => ( isset( $values['description'] ) ? esc_attr( $values['description'] ) : '' ),
141
+ 'section' => ( isset( $values['section'] ) ? esc_attr( $values['section'] ) : '' ),
142
  'settings' => array(
143
  'family' => $id . '_font',
144
  'weight' => $id . '_font_weight',
includes/functions.php CHANGED
@@ -109,6 +109,12 @@ function ogf_get_elements() {
109
  'section' => 'ogf_advanced__content',
110
  'selectors' => '.entry-content h6, .post-content h6, .page-content h6, #content h6, .type-post h6, .type-page h6',
111
  ),
 
 
 
 
 
 
112
  'ogf_sidebar_headings' => array(
113
  'label' => esc_html__( 'Headings Typography', 'olympus-google-fonts' ),
114
  'description' => esc_html__( 'Select and configure the font for your sidebar headings.', 'olympus-google-fonts' ),
109
  'section' => 'ogf_advanced__content',
110
  'selectors' => '.entry-content h6, .post-content h6, .page-content h6, #content h6, .type-post h6, .type-page h6',
111
  ),
112
+ 'ogf_blockquotes' => array(
113
+ 'label' => esc_html__( 'Quotes', 'olympus-google-fonts' ),
114
+ 'description' => esc_html__( 'Select and configure the font for quotations.', 'olympus-google-fonts' ),
115
+ 'section' => 'ogf_advanced__content',
116
+ 'selectors' => 'blockquote, .wp-block-quote, blockquote p, .wp-block-quote p',
117
+ ),
118
  'ogf_sidebar_headings' => array(
119
  'label' => esc_html__( 'Headings Typography', 'olympus-google-fonts' ),
120
  'description' => esc_html__( 'Select and configure the font for your sidebar headings.', 'olympus-google-fonts' ),
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 typography plugin. No coding required. 1000+ font choices.
8
- * Version: 2.5.6
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 typography plugin. No coding required. 1000+ font choices.
8
+ * Version: 2.5.7
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.7
7
  License: GPLv2 or later
8
- Stable tag: 2.5.6
9
 
10
  The easiest to use Google Fonts Typography Plugin. No coding required. 1000+ font choices.
11
 
5
  Requires at least: 4.0
6
  Tested up to: 5.7
7
  License: GPLv2 or later
8
+ Stable tag: 2.5.7
9
 
10
  The easiest to use Google Fonts Typography Plugin. No coding required. 1000+ font choices.
11