Styles - Version 1.1.1

Version Description

  • Fix: Missing Google Fonts after save.
Download this release

Release Info

Developer pdclark
Plugin Icon Styles
Version 1.1.1
Comparing to
See all releases

Code changes from version 1.1 to 1.1.1

Files changed (3) hide show
  1. classes/styles-control-text.php +2 -2
  2. readme.txt +9 -1
  3. styles.php +1 -1
classes/styles-control-text.php CHANGED
@@ -103,8 +103,8 @@ class Styles_Control_Text extends Styles_Control {
103
  }
104
 
105
  if ( isset( $font->import_family ) ) {
106
- global $storm_styles;
107
- $storm_styles->css->google_fonts[ $value ] = "@import url(//fonts.googleapis.com/css?family={$font->import_family});\r";
108
  }
109
 
110
  $css = '';
103
  }
104
 
105
  if ( isset( $font->import_family ) ) {
106
+ $styles = Styles_Plugin::get_instance();
107
+ $styles->css->google_fonts[ $value ] = "@import url(//fonts.googleapis.com/css?family={$font->import_family});\r";
108
  }
109
 
110
  $css = '';
readme.txt CHANGED
@@ -5,7 +5,7 @@ Author URI: http://brainstormmedia.com
5
  Tags: css, stylesheet, appearance, customize, customizer, colors, color picker, background, fonts, google fonts, user interface, twenty ten, twenty eleven, twenty twelve, twenty thirteen
6
  Requires at least: 3.4
7
  Tested up to: 3.6
8
- Stable tag: 1.1
9
 
10
  Be creative with colors and fonts. Styles changes everything.
11
 
@@ -91,6 +91,10 @@ No! Styles is very careful about only loading what is needed to get its job done
91
 
92
  == Changelog ==
93
 
 
 
 
 
94
  = 1.1 =
95
 
96
  * New: Previews in font menu. [View screenshot](https://raw.github.com/stylesplugin/styles-font-dropdown/master/img/example-output.gif?v3).
@@ -233,6 +237,10 @@ No! Styles is very careful about only loading what is needed to get its job done
233
 
234
  == Upgrade Notice ==
235
 
 
 
 
 
236
  = 1.1 =
237
 
238
  * New: Previews in font menu. [View screenshot](https://raw.github.com/stylesplugin/styles-font-dropdown/master/img/example-output.gif?v3).
5
  Tags: css, stylesheet, appearance, customize, customizer, colors, color picker, background, fonts, google fonts, user interface, twenty ten, twenty eleven, twenty twelve, twenty thirteen
6
  Requires at least: 3.4
7
  Tested up to: 3.6
8
+ Stable tag: 1.1.1
9
 
10
  Be creative with colors and fonts. Styles changes everything.
11
 
91
 
92
  == Changelog ==
93
 
94
+ = 1.1.1 =
95
+
96
+ * Fix: Missing Google Fonts after save.
97
+
98
  = 1.1 =
99
 
100
  * New: Previews in font menu. [View screenshot](https://raw.github.com/stylesplugin/styles-font-dropdown/master/img/example-output.gif?v3).
237
 
238
  == Upgrade Notice ==
239
 
240
+ = 1.1.1 =
241
+
242
+ * Fix: Missing Google Fonts after save.
243
+
244
  = 1.1 =
245
 
246
  * New: Previews in font menu. [View screenshot](https://raw.github.com/stylesplugin/styles-font-dropdown/master/img/example-output.gif?v3).
styles.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Styles
4
  Plugin URI: http://stylesplugin.com
5
  Description: Change the appearance of your theme using the <a href="customize.php">WordPress Customizer</a>. Styles changes everything.
6
- Version: 1.1
7
  Author: Brainstorm Media
8
  Author URI: http://brainstormmedia.com
9
  License: GPLv2
3
  Plugin Name: Styles
4
  Plugin URI: http://stylesplugin.com
5
  Description: Change the appearance of your theme using the <a href="customize.php">WordPress Customizer</a>. Styles changes everything.
6
+ Version: 1.1.1
7
  Author: Brainstorm Media
8
  Author URI: http://brainstormmedia.com
9
  License: GPLv2