WooCommerce Colors - Version 1.0.3

Version Description

  • 2015/02/13 =

  • Fixed the WooCommerce notices when install the WooCommerce Colors.

Download this release

Release Info

Developer claudiosanches
Plugin Icon 128x128 WooCommerce Colors
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.2 to 1.0.3

Files changed (2) hide show
  1. readme.txt +11 -3
  2. woocommerce-colors.php +7 -3
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: woothemes, claudiosanches
3
  Tags: woocommerce, shortcodes
4
  Requires at least: 4.0
5
  Tested up to: 4.1
6
- Stable tag: 1.0.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -15,6 +15,10 @@ This plugin adds a new session called WooCommerce on the Customize menu, allowin
15
 
16
  Starting WooCommerce 2.3 the Frontend styles options will no longer be part of WooCommerce and will only be available by using this plugin.
17
 
 
 
 
 
18
  = Requeriments =
19
 
20
  * WordPress 4.0 or later.
@@ -57,6 +61,10 @@ We recommend you use WordPress 4.0 or 4.1 for this plugin work properly.
57
 
58
  == Changelog ==
59
 
 
 
 
 
60
  = 1.0.2 - 2015/02/12 =
61
 
62
  * Added descriptions in the customizer options (see the screenshot).
@@ -71,6 +79,6 @@ We recommend you use WordPress 4.0 or 4.1 for this plugin work properly.
71
 
72
  == Upgrade Notice ==
73
 
74
- = 1.0.2 =
75
 
76
- * Added descriptions in the customizer options (see the screenshot).
3
  Tags: woocommerce, shortcodes
4
  Requires at least: 4.0
5
  Tested up to: 4.1
6
+ Stable tag: 1.0.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
15
 
16
  Starting WooCommerce 2.3 the Frontend styles options will no longer be part of WooCommerce and will only be available by using this plugin.
17
 
18
+ = WooCommerce Colors in action: =
19
+
20
+ [youtube https://www.youtube.com/watch?v=Hvyy36FOiTA]
21
+
22
  = Requeriments =
23
 
24
  * WordPress 4.0 or later.
61
 
62
  == Changelog ==
63
 
64
+ = 1.0.3 - 2015/02/13 =
65
+
66
+ * Fixed the WooCommerce notices when install the WooCommerce Colors.
67
+
68
  = 1.0.2 - 2015/02/12 =
69
 
70
  * Added descriptions in the customizer options (see the screenshot).
79
 
80
  == Upgrade Notice ==
81
 
82
+ = 1.0.3 =
83
 
84
+ * Fixed the WooCommerce notices when install the WooCommerce Colors.
woocommerce-colors.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: WooCommerce Colors.
6
  * Author: WooThemes
7
  * Author URI: http://woothemes.com
8
- * Version: 1.0.2
9
  * License: GPLv2 or later
10
  * Text Domain: woocommerce-colors
11
  * Domain Path: languages/
@@ -27,7 +27,7 @@ class WC_Colors {
27
  *
28
  * @var string
29
  */
30
- const VERSION = '1.0.2';
31
 
32
  /**
33
  * Instance of this class.
@@ -148,6 +148,10 @@ class WC_Colors {
148
 
149
  // Delete the old option.
150
  delete_option( 'woocommerce_frontend_css_colors' );
 
 
 
 
151
  }
152
  }
153
 
@@ -164,6 +168,6 @@ class WC_Colors {
164
  // Plugin install.
165
  register_activation_hook( __FILE__, array( 'WC_Colors', 'install' ) );
166
 
167
- add_action( 'plugins_loaded', array( 'WC_Colors', 'get_instance' ), 0 );
168
 
169
  endif;
5
  * Description: WooCommerce Colors.
6
  * Author: WooThemes
7
  * Author URI: http://woothemes.com
8
+ * Version: 1.0.3
9
  * License: GPLv2 or later
10
  * Text Domain: woocommerce-colors
11
  * Domain Path: languages/
27
  *
28
  * @var string
29
  */
30
+ const VERSION = '1.0.3';
31
 
32
  /**
33
  * Instance of this class.
148
 
149
  // Delete the old option.
150
  delete_option( 'woocommerce_frontend_css_colors' );
151
+
152
+ // Remove the notice.
153
+ $notices = array_diff( get_option( 'woocommerce_admin_notices', array() ), array( 'frontend_colors' ) );
154
+ update_option( 'woocommerce_admin_notices', $notices );
155
  }
156
  }
157
 
168
  // Plugin install.
169
  register_activation_hook( __FILE__, array( 'WC_Colors', 'install' ) );
170
 
171
+ add_action( 'plugins_loaded', array( 'WC_Colors', 'get_instance' ) );
172
 
173
  endif;