Styles - Version 1.1.2

Version Description

  • Fix: Incompatibility with IIS servers & Google Fonts menu. Thanks @Rivanni for the error report.
Download this release

Release Info

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

Code changes from version 1.1.1 to 1.1.2

classes/styles-font-menu/classes/sfm-plugin.php CHANGED
@@ -21,7 +21,7 @@ class SFM_Plugin {
21
  /**
22
  * @var string The plugin version.
23
  */
24
- var $version = '1.0';
25
 
26
  /**
27
  * @var Styles_Font_Menu Instance of the class.
@@ -105,8 +105,11 @@ class SFM_Plugin {
105
  * Initial setup. Called by get_instance.
106
  */
107
  protected function init() {
108
- $this->plugin_directory = dirname( dirname( __FILE__ ) );
109
- $this->plugin_url = site_url( str_replace( ABSPATH, '', $this->plugin_directory ) );
 
 
 
110
  $this->plugin_basename = plugin_basename( $this->plugin_directory . '/plugin.php' );
111
 
112
  $this->admin = new SFM_Admin( $this );
21
  /**
22
  * @var string The plugin version.
23
  */
24
+ var $version = '1.0.1';
25
 
26
  /**
27
  * @var Styles_Font_Menu Instance of the class.
105
  * Initial setup. Called by get_instance.
106
  */
107
  protected function init() {
108
+ // Fix for IIS
109
+ $normalized_abspath = str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, ABSPATH );
110
+
111
+ $this->plugin_directory = str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, dirname( dirname( __FILE__ ) ) );
112
+ $this->plugin_url = site_url( str_replace( $normalized_abspath, '', $this->plugin_directory ) );
113
  $this->plugin_basename = plugin_basename( $this->plugin_directory . '/plugin.php' );
114
 
115
  $this->admin = new SFM_Admin( $this );
classes/styles-font-menu/plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Styles: Font Menu
4
  Plugin URI: http://github.com/stylesplugin/styles-font-menu
5
  Description: Display an up-to-date menu of Google Fonts. Include it in your own plugins and themes, or install as a plugin for testing and a live demo. Uses the Chosen library to allow menu search and styles.
6
- Version: 1.0
7
  Author: Brainstorm Media
8
  Author URI: http://brainstormmedia.com
9
  License: GPLv2
3
  Plugin Name: Styles: Font Menu
4
  Plugin URI: http://github.com/stylesplugin/styles-font-menu
5
  Description: Display an up-to-date menu of Google Fonts. Include it in your own plugins and themes, or install as a plugin for testing and a live demo. Uses the Chosen library to allow menu search and styles.
6
+ Version: 1.0.1
7
  Author: Brainstorm Media
8
  Author URI: http://brainstormmedia.com
9
  License: GPLv2
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.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.1 =
95
 
96
  * Fix: Missing Google Fonts after save.
@@ -237,16 +241,6 @@ No! Styles is very careful about only loading what is needed to get its job done
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).
247
- * New: Search to filter font list.
248
- * New: Updated Google Fonts.
249
- * New: Google Fonts update in preview without page reload.
250
- * New: Simplified plugin loader with nice notices for old WordPress versions.
251
- * New: Update scripts to convert old font format to new format.
252
- * Note: The update is well-tested, but in case of any issues, the upgrade script backs up old settings in `wp_options` for 30 days as `_transient_storm-styles-THEME-NAME-pre-1.1.0`.
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.2
9
 
10
  Be creative with colors and fonts. Styles changes everything.
11
 
91
 
92
  == Changelog ==
93
 
94
+ = 1.1.2 =
95
+
96
+ * Fix: Incompatibility with IIS servers & Google Fonts menu. Thanks [@Rivanni](http://wordpress.org/support/topic/version-111-appears-as-version-105-still-no-google-fonts) for the error report.
97
+
98
  = 1.1.1 =
99
 
100
  * Fix: Missing Google Fonts after save.
241
 
242
  == Upgrade Notice ==
243
 
244
+ = 1.1.2 =
 
 
 
 
245
 
246
+ * Fix: Incompatibility with IIS servers & Google Fonts menu. Thanks [@Rivanni](http://wordpress.org/support/topic/version-111-appears-as-version-105-still-no-google-fonts) for the error report.
 
 
 
 
 
 
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.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.2
7
  Author: Brainstorm Media
8
  Author URI: http://brainstormmedia.com
9
  License: GPLv2