Styles - Version 0.5.1

Version Description

  • Fix issue that would prevent Font styles from outputting if another option wasn't set on the same element.
Download this release

Release Info

Developer brainstormmedia
Plugin Icon Styles
Version 0.5.1
Comparing to
See all releases

Code changes from version 0.5.0 to 0.5.1

Files changed (3) hide show
  1. classes/storm-css-processor.php +6 -3
  2. readme.txt +4 -1
  3. styles.php +1 -1
classes/storm-css-processor.php CHANGED
@@ -163,8 +163,11 @@ class Storm_CSS_Processor {
163
 
164
  extract( $el['values'] );
165
 
166
- if ( empty($active) || empty($selector) ) { continue; }
167
-
 
 
 
168
  $properties = '';
169
 
170
  // Create new styles
@@ -226,7 +229,7 @@ class Storm_CSS_Processor {
226
  // $color, $font_size, $font_family, $font_weight
227
  // $font_style, $text_transform, $line_height
228
  extract( $values );
229
-
230
  if ( is_object( $this->styles->wp->admin_settings )) {
231
  $opts = $this->styles->wp->admin_settings;
232
  }else {
163
 
164
  extract( $el['values'] );
165
 
166
+ if ( empty($selector) ) { continue; }
167
+ if ( empty($active) && empty($color) && empty($font_size) && empty($font_family) && empty($font_weight) && empty($font_style) && empty($text_transform) && empty($line_height) ) {
168
+ continue;
169
+ }
170
+
171
  $properties = '';
172
 
173
  // Create new styles
229
  // $color, $font_size, $font_family, $font_weight
230
  // $font_style, $text_transform, $line_height
231
  extract( $values );
232
+
233
  if ( is_object( $this->styles->wp->admin_settings )) {
234
  $opts = $this->styles->wp->admin_settings;
235
  }else {
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
6
  Tags: css, stylesheet, scss, sass, scaffold, less, admin, gui, color picker, gradient, image upload, google fonts, user interface, twentyten, twentyeleven
7
  Requires at least: 3.1
8
  Tested up to: 3.3.1
9
- Stable tag: 0.5.0
10
 
11
  Change the appearance of supported themes using zero code. Creates appearance options for images, colors, gradients, and fonts.
12
 
@@ -80,6 +80,9 @@ For general purpose CSS processing, you'll be much better off using one of the m
80
 
81
  == Changelog ==
82
 
 
 
 
83
  = 0.5.0 =
84
  * Load themes from API: Allows for theme support to be added without plugin updates.
85
  * New data structure: Allow settings to migrate from theme to theme
6
  Tags: css, stylesheet, scss, sass, scaffold, less, admin, gui, color picker, gradient, image upload, google fonts, user interface, twentyten, twentyeleven
7
  Requires at least: 3.1
8
  Tested up to: 3.3.1
9
+ Stable tag: 0.5.1
10
 
11
  Change the appearance of supported themes using zero code. Creates appearance options for images, colors, gradients, and fonts.
12
 
80
 
81
  == Changelog ==
82
 
83
+ = 0.5.1 =
84
+ * Fix issue that would prevent Font styles from outputting if another option wasn't set on the same element.
85
+
86
  = 0.5.0 =
87
  * Load themes from API: Allows for theme support to be added without plugin updates.
88
  * New data structure: Allow settings to migrate from theme to theme
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 WordPress admin. Creates WordPress theme options for images, colors, gradients, and fonts.
6
- Version: 0.5.0
7
  Author: Brainstorm Media
8
  Author URI: http://brainstormmedia.com
9
  */
3
  Plugin Name: Styles
4
  Plugin URI: http://stylesplugin.com
5
  Description: Change the appearance of your theme using the WordPress admin. Creates WordPress theme options for images, colors, gradients, and fonts.
6
+ Version: 0.5.1
7
  Author: Brainstorm Media
8
  Author URI: http://brainstormmedia.com
9
  */