Styles - Version 1.0.18

Version Description

  • Fix: Revert settings change made in 1.0.15. This was causing some users to no longer see their old settings.
Download this release

Release Info

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

Code changes from version 1.0.17 to 1.0.18

classes/styles-helpers.php CHANGED
@@ -80,7 +80,7 @@ class Styles_Helpers {
80
  return sprintf( $template, $error, $url, $path );
81
  }
82
 
83
- public static function get_theme() {
84
  if ( isset( self::$template ) ) {
85
  return self::$template;
86
  }
@@ -90,9 +90,9 @@ class Styles_Helpers {
90
  if ( isset( $_GET['theme'] ) ) {
91
  self::$template = $_GET['theme'];
92
  }else if ( is_a( $wp_customize, 'WP_Customize_Manager' ) ) {
93
- self::$template = $wp_customize->theme()->stylesheet;
94
  }else {
95
- self::$template = get_stylesheet();
96
  }
97
 
98
  return self::$template;
@@ -101,9 +101,9 @@ class Styles_Helpers {
101
 
102
  public static function get_option_key( $suffix = false ) {
103
  if ( $suffix ) {
104
- return 'storm-styles-' . self::get_theme() . '-' . $suffix;
105
  }else {
106
- return 'storm-styles-' . self::get_theme();
107
  }
108
  }
109
  }
80
  return sprintf( $template, $error, $url, $path );
81
  }
82
 
83
+ public static function get_template() {
84
  if ( isset( self::$template ) ) {
85
  return self::$template;
86
  }
90
  if ( isset( $_GET['theme'] ) ) {
91
  self::$template = $_GET['theme'];
92
  }else if ( is_a( $wp_customize, 'WP_Customize_Manager' ) ) {
93
+ self::$template = $wp_customize->theme()->template;
94
  }else {
95
+ self::$template = get_template();
96
  }
97
 
98
  return self::$template;
101
 
102
  public static function get_option_key( $suffix = false ) {
103
  if ( $suffix ) {
104
+ return 'storm-styles-' . self::get_template() . '-' . $suffix;
105
  }else {
106
+ return 'storm-styles-' . self::get_template();
107
  }
108
  }
109
  }
classes/styles-plugin.php CHANGED
@@ -12,7 +12,7 @@ class Styles_Plugin {
12
  *
13
  * @var string
14
  **/
15
- var $version = '1.0.17';
16
 
17
  /**
18
  * Plugin DB version
12
  *
13
  * @var string
14
  **/
15
+ var $version = '1.0.18';
16
 
17
  /**
18
  * Plugin DB version
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.0.17
9
 
10
  Be creative with colors and fonts. Styles changes everything.
11
 
@@ -90,6 +90,10 @@ No! Styles is very careful about only loading what is needed to get its job done
90
 
91
  == Changelog ==
92
 
 
 
 
 
93
  = 1.0.17 =
94
 
95
  * New: Increase memory limit for logged in users. May fix a white screen some users experienced when attempting to preview their site.
@@ -218,7 +222,4 @@ No! Styles is very careful about only loading what is needed to get its job done
218
 
219
  == Upgrade Notice ==
220
 
221
- * New: Increase memory limit for logged in users. May fix a white screen some users experienced when attempting to preview their site.
222
- * Fix: Customize Theme button loads customizer for current site in network. Resolves [#38](https://github.com/stylesplugin/styles/issues/38). Thanks @jivedig.
223
- * Fix: Child and parent theme options no longer effect each other. Resolves [#29](https://github.com/stylesplugin/styles/issues/29). Thanks @jivedig.
224
- * New: Filter `styles_get_group_id` for merging with existing groups.
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.0.18
9
 
10
  Be creative with colors and fonts. Styles changes everything.
11
 
90
 
91
  == Changelog ==
92
 
93
+ = 1.0.18 =
94
+
95
+ * Fix: Revert [settings change made in 1.0.15](https://github.com/stylesplugin/styles/commit/bb723d489f8f91fee6b15ec4dcf03df8dfebcee3). This was causing some users to no longer see their old settings.
96
+
97
  = 1.0.17 =
98
 
99
  * New: Increase memory limit for logged in users. May fix a white screen some users experienced when attempting to preview their site.
222
 
223
  == Upgrade Notice ==
224
 
225
+ * Critical Fix: Revert [settings change made in 1.0.15](https://github.com/stylesplugin/styles/commit/bb723d489f8f91fee6b15ec4dcf03df8dfebcee3). This was causing some users to no longer see their old settings.
 
 
 
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.0.17
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 <a href="customize.php">WordPress Customizer</a>. Styles changes everything.
6
+ Version: 1.0.18
7
  Author: Brainstorm Media
8
  Author URI: http://brainstormmedia.com
9
  */