Version Description
- Fix: Customize Theme button loads customizer for current site in network. Resolves #38. Thanks @jivedig.
- Fix: Child and parent theme options no longer effect each other. Resolves #29. Thanks @jivedig.
Download this release
Release Info
Developer | pdclark |
Plugin | Styles |
Version | 1.0.15 |
Comparing to | |
See all releases |
Code changes from version 1.0.14 to 1.0.15
- classes/styles-admin.php +1 -1
- classes/styles-helpers.php +5 -5
- classes/styles-plugin.php +1 -1
- readme.txt +8 -36
- styles.php +1 -1
classes/styles-admin.php
CHANGED
@@ -63,7 +63,7 @@ class Styles_Admin {
|
|
63 |
public function plugin_row_meta( $meta, $basename ) {
|
64 |
if ( STYLES_BASENAME == $basename ) {
|
65 |
$meta[2] = str_replace( 'Visit plugin site', 'Get More Themes', $meta[2] );
|
66 |
-
$meta[] = '<a class="button button-primary" href="' .
|
67 |
}
|
68 |
return $meta;
|
69 |
}
|
63 |
public function plugin_row_meta( $meta, $basename ) {
|
64 |
if ( STYLES_BASENAME == $basename ) {
|
65 |
$meta[2] = str_replace( 'Visit plugin site', 'Get More Themes', $meta[2] );
|
66 |
+
$meta[] = '<a class="button button-primary" href="' . admin_url( 'customize.php' ) . '">Customize Theme</a>';
|
67 |
}
|
68 |
return $meta;
|
69 |
}
|
classes/styles-helpers.php
CHANGED
@@ -79,7 +79,7 @@ class Styles_Helpers {
|
|
79 |
return sprintf( $template, $error, $url, $path );
|
80 |
}
|
81 |
|
82 |
-
public static function
|
83 |
if ( isset( self::$template ) ) {
|
84 |
return self::$template;
|
85 |
}
|
@@ -89,9 +89,9 @@ class Styles_Helpers {
|
|
89 |
if ( isset( $_GET['theme'] ) ) {
|
90 |
self::$template = $_GET['theme'];
|
91 |
}else if ( is_a( $wp_customize, 'WP_Customize_Manager' ) ) {
|
92 |
-
self::$template = $wp_customize->theme()->
|
93 |
}else {
|
94 |
-
self::$template =
|
95 |
}
|
96 |
|
97 |
return self::$template;
|
@@ -100,9 +100,9 @@ class Styles_Helpers {
|
|
100 |
|
101 |
public static function get_option_key( $suffix = false ) {
|
102 |
if ( $suffix ) {
|
103 |
-
return 'storm-styles-' . self::
|
104 |
}else {
|
105 |
-
return 'storm-styles-' . self::
|
106 |
}
|
107 |
}
|
108 |
}
|
79 |
return sprintf( $template, $error, $url, $path );
|
80 |
}
|
81 |
|
82 |
+
public static function get_theme() {
|
83 |
if ( isset( self::$template ) ) {
|
84 |
return self::$template;
|
85 |
}
|
89 |
if ( isset( $_GET['theme'] ) ) {
|
90 |
self::$template = $_GET['theme'];
|
91 |
}else if ( is_a( $wp_customize, 'WP_Customize_Manager' ) ) {
|
92 |
+
self::$template = $wp_customize->theme()->stylesheet;
|
93 |
}else {
|
94 |
+
self::$template = get_stylesheet();
|
95 |
}
|
96 |
|
97 |
return self::$template;
|
100 |
|
101 |
public static function get_option_key( $suffix = false ) {
|
102 |
if ( $suffix ) {
|
103 |
+
return 'storm-styles-' . self::get_theme() . '-' . $suffix;
|
104 |
}else {
|
105 |
+
return 'storm-styles-' . self::get_theme();
|
106 |
}
|
107 |
}
|
108 |
}
|
classes/styles-plugin.php
CHANGED
@@ -12,7 +12,7 @@ class Styles_Plugin {
|
|
12 |
*
|
13 |
* @var string
|
14 |
**/
|
15 |
-
var $version = '1.0.
|
16 |
|
17 |
/**
|
18 |
* Plugin DB version
|
12 |
*
|
13 |
* @var string
|
14 |
**/
|
15 |
+
var $version = '1.0.15';
|
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.
|
9 |
|
10 |
Be creative with colors and fonts. Styles changes everything.
|
11 |
|
@@ -90,6 +90,11 @@ No! Styles is very careful about only loading what is needed to get its job done
|
|
90 |
|
91 |
== Changelog ==
|
92 |
|
|
|
|
|
|
|
|
|
|
|
93 |
= 1.0.14 =
|
94 |
|
95 |
* Fix: Don't display install notice for child themes. Thanks [@ektreyes](http://twitter.com/ektreyes) for the report.
|
@@ -205,38 +210,5 @@ No! Styles is very careful about only loading what is needed to get its job done
|
|
205 |
|
206 |
== Upgrade Notice ==
|
207 |
|
208 |
-
|
209 |
-
|
210 |
-
* Fix: Don't display install notice for child themes. Thanks [@ektreyes](http://twitter.com/ektreyes) for the report.
|
211 |
-
|
212 |
-
**1.0.13**
|
213 |
-
|
214 |
-
* New: Allow notices to be disabled with a filter: <code>add_filter( 'styles_disable_notices', '__return_true' );</code>
|
215 |
-
* New: Don't display install notices for default themes if a plugin is installed and then renamed.
|
216 |
-
* Fix: Don't display install notices for non-default themes. Resolves a regression introduced in 1.0.12.
|
217 |
-
|
218 |
-
**1.0.12**
|
219 |
-
|
220 |
-
<ul>
|
221 |
-
<li>Fix: Improve detection of plugins adding support for themes
|
222 |
-
<ul>
|
223 |
-
<li>Add support if `Plugin Name: Styles: NAME` matches `Theme Name: NAME`</li>
|
224 |
-
<li>Add support if directory names `styles-NAME` and `theme/NAME` match</li>
|
225 |
-
<li>Make theme check case-insensitive. Resolves issues for themes with capitalized folder names, like iThemes child themes.</li>
|
226 |
-
<li>Thanks [@JiveDig](http://twitter.com/jivedig) for pointing some of these issues out.</li>
|
227 |
-
</ul>
|
228 |
-
</li>
|
229 |
-
<li>Fix: Improve activation notices for child themes
|
230 |
-
<ul>
|
231 |
-
<li>Add theme options for a parent theme if they're activated, but don't show a notice requiring them.</li>
|
232 |
-
<li>Detect and display which theme a plugin is trying to add support for.</li>
|
233 |
-
<li>Correctly display the plugin name requesting activation in cases where the plugin doesn't follow the recommended naming convention.</li>
|
234 |
-
</ul>
|
235 |
-
</li>
|
236 |
-
</ul>
|
237 |
-
|
238 |
-
**1.0.11**
|
239 |
-
|
240 |
-
* [This release goes to 11](http://www.youtube.com/watch?v=NrVCjnRdB_k).
|
241 |
-
* Fix: Issue detecting add-ons for child themes. Thanks [@JiveDig](http://twitter.com/jivedig) for pointing this out.
|
242 |
-
* Enhancement: Enqueue customizer scripts in a way that's easier for plugins to extend. Props [@westonruter](https://github.com/westonruter).
|
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.15
|
9 |
|
10 |
Be creative with colors and fonts. Styles changes everything.
|
11 |
|
90 |
|
91 |
== Changelog ==
|
92 |
|
93 |
+
= 1.0.15 =
|
94 |
+
|
95 |
+
* Fix: Customize Theme button loads customizer for current site in network. Resolves [#38](https://github.com/stylesplugin/styles/issues/38). Thanks @jivedig.
|
96 |
+
* Fix: Child and parent theme options no longer effect each other. Resolves [#29](https://github.com/stylesplugin/styles/issues/29). Thanks @jivedig.
|
97 |
+
|
98 |
= 1.0.14 =
|
99 |
|
100 |
* Fix: Don't display install notice for child themes. Thanks [@ektreyes](http://twitter.com/ektreyes) for the report.
|
210 |
|
211 |
== Upgrade Notice ==
|
212 |
|
213 |
+
* Fix: Customize Theme button loads customizer for current site in network. Resolves [#38](https://github.com/stylesplugin/styles/issues/38). Thanks @jivedig.
|
214 |
+
* Fix: Child and parent theme options no longer effect each other. Resolves [#29](https://github.com/stylesplugin/styles/issues/29). Thanks @jivedig.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
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.15
|
7 |
Author: Brainstorm Media
|
8 |
Author URI: http://brainstormmedia.com
|
9 |
*/
|