WooCommerce Customizer - Version 2.3.1

Version Description

  • Fix - Fixes "headers already sent" error if WooCommerce is out of date
Download this release

Release Info

Developer SkyVerge
Plugin Icon WooCommerce Customizer
Version 2.3.1
Comparing to
See all releases

Code changes from version 2.3.0 to 2.3.1

i18n/languages/woocommerce-customizer.pot CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the GNU General Public License v3.0.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WooCommerce Customizer 2.3.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://github.com/skyverge/woocommerce-customizer/issues\n"
8
  "POT-Creation-Date: 2014-09-05 23:18:53+00:00\n"
@@ -241,33 +241,40 @@ msgstr ""
241
  msgid "Change the default placeholder image by setting this to a valid image URL"
242
  msgstr ""
243
 
244
- #: woocommerce-customizer.php:121
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
  #. translators: Placeholders: %s - plugin name
246
  msgid "You cannot clone instances of %s."
247
  msgstr ""
248
 
249
- #: woocommerce-customizer.php:133
250
  #. translators: Placeholders: %s - plugin name
251
  msgid "You cannot unserialize instances of %s."
252
  msgstr ""
253
 
254
- #: woocommerce-customizer.php:226
255
- #. translators: %1$s and %2$s are <strong> tags. %3$s and %4$s are <a> tags
256
- msgid ""
257
- "%1$sWooCommerce Customizer is inactive.%2$s This version requires "
258
- "WooCommerce 2.4.13 or newer. Please %3$supdate WooCommerce to version "
259
- "2.4.13 or newer%4$s"
260
- msgstr ""
261
-
262
- #: woocommerce-customizer.php:333
263
  msgid "Configure"
264
  msgstr ""
265
 
266
- #: woocommerce-customizer.php:334
267
  msgid "FAQ"
268
  msgstr ""
269
 
270
- #: woocommerce-customizer.php:335
271
  msgid "Support"
272
  msgstr ""
273
 
2
  # This file is distributed under the GNU General Public License v3.0.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce Customizer 2.3.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://github.com/skyverge/woocommerce-customizer/issues\n"
8
  "POT-Creation-Date: 2014-09-05 23:18:53+00:00\n"
241
  msgid "Change the default placeholder image by setting this to a valid image URL"
242
  msgstr ""
243
 
244
+ #: woocommerce-customizer.php:50
245
+ #. translators: %1$s and %2$s are <strong> tags. %3$s and %4$s are <a> tags
246
+ msgid ""
247
+ "%1$sWooCommerce Customizer is inactive.%2$s This version requires "
248
+ "WooCommerce 2.4.13 or newer. Please %3$supdate WooCommerce to version "
249
+ "2.4.13 or newer%4$s"
250
+ msgstr ""
251
+
252
+ #: woocommerce-customizer.php:70
253
+ #. translators: %1$s and %2$s are <strong> tags. %3$s and %4$s are <a> tags
254
+ msgid ""
255
+ "%1$sWooCommerce Customizer is inactive%2$s as it requires WooCommerce. "
256
+ "Please %3$sactivate WooCommerce version 2.4.13 or newer%4$s"
257
+ msgstr ""
258
+
259
+ #: woocommerce-customizer.php:163
260
  #. translators: Placeholders: %s - plugin name
261
  msgid "You cannot clone instances of %s."
262
  msgstr ""
263
 
264
+ #: woocommerce-customizer.php:175
265
  #. translators: Placeholders: %s - plugin name
266
  msgid "You cannot unserialize instances of %s."
267
  msgstr ""
268
 
269
+ #: woocommerce-customizer.php:355
 
 
 
 
 
 
 
 
270
  msgid "Configure"
271
  msgstr ""
272
 
273
+ #: woocommerce-customizer.php:356
274
  msgid "FAQ"
275
  msgstr ""
276
 
277
+ #: woocommerce-customizer.php:357
278
  msgid "Support"
279
  msgstr ""
280
 
readme.txt CHANGED
@@ -6,7 +6,7 @@ Requires at least: 4.1
6
  Tested up to: 4.5.2
7
  Requires WooCommerce at least: 2.4.13
8
  Tested WooCommerce up to: 2.6.0
9
- Stable tag: 2.3.0
10
  License: GPLv3 or later
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
12
 
@@ -74,6 +74,9 @@ Yes! Fork the plugin on [GitHub](https://github.com/skyverge/woocommerce-customi
74
 
75
  == Changelog ==
76
 
 
 
 
77
  = 2.3.0 =
78
  * Misc - Added support for WooCommerce 2.6
79
  * Misc - Removed support for WooCommerce 2.3
6
  Tested up to: 4.5.2
7
  Requires WooCommerce at least: 2.4.13
8
  Tested WooCommerce up to: 2.6.0
9
+ Stable tag: 2.3.1
10
  License: GPLv3 or later
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
12
 
74
 
75
  == Changelog ==
76
 
77
+ = 2.3.1 =
78
+ * Fix - Fixes "headers already sent" error if WooCommerce is out of date
79
+
80
  = 2.3.0 =
81
  * Misc - Added support for WooCommerce 2.6
82
  * Misc - Removed support for WooCommerce 2.3
woocommerce-customizer.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Customize WooCommerce without code! Easily change add to cart button text and more.
6
  * Author: SkyVerge
7
  * Author URI: http://www.skyverge.com
8
- * Version: 2.3.0
9
  * Text Domain: woocommerce-customizer
10
  * Domain Path: /i18n/languages/
11
  *
@@ -25,17 +25,59 @@ defined( 'ABSPATH' ) or exit;
25
 
26
  // Check if WooCommerce is active
27
  if ( ! WC_Customizer::is_woocommerce_active() ) {
 
 
28
  return;
29
  }
30
 
31
  // WC version check
32
  if ( version_compare( get_option( 'woocommerce_db_version' ), '2.4.13', '<' ) ) {
33
 
34
- add_action( 'admin_notices', WC_Customizer::render_outdated_wc_version_notice() );
35
  return;
36
  }
37
 
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  /**
40
  * # WooCommerce Customizer Main Plugin Class
41
  *
@@ -71,7 +113,7 @@ class WC_Customizer {
71
 
72
 
73
  /** plugin version number */
74
- const VERSION = '2.3.0';
75
 
76
  /** @var \WC_Customizer single instance of this plugin */
77
  protected static $instance;
@@ -214,26 +256,6 @@ class WC_Customizer {
214
  }
215
 
216
 
217
- /**
218
- * Renders a notice when WooCommerce version is outdated
219
- *
220
- * @since 2.3.0
221
- */
222
- public static function render_outdated_wc_version_notice() {
223
-
224
- $message = sprintf(
225
- /* translators: %1$s and %2$s are <strong> tags. %3$s and %4$s are <a> tags */
226
- __( '%1$sWooCommerce Customizer is inactive.%2$s This version requires WooCommerce 2.4.13 or newer. Please %3$supdate WooCommerce to version 2.4.13 or newer%4$s', 'woocommerce-customizer' ),
227
- '<strong>',
228
- '</strong>',
229
- '<a href="' . admin_url( 'plugins.php' ) . '">',
230
- '&nbsp;&raquo;</a>'
231
- );
232
-
233
- printf( '<div class="error"><p>%s</p></div>', $message );
234
- }
235
-
236
-
237
  /** Frontend methods ******************************************************/
238
 
239
 
5
  * Description: Customize WooCommerce without code! Easily change add to cart button text and more.
6
  * Author: SkyVerge
7
  * Author URI: http://www.skyverge.com
8
+ * Version: 2.3.1
9
  * Text Domain: woocommerce-customizer
10
  * Domain Path: /i18n/languages/
11
  *
25
 
26
  // Check if WooCommerce is active
27
  if ( ! WC_Customizer::is_woocommerce_active() ) {
28
+
29
+ add_action( 'admin_notices', 'wc_customizer_render_wc_inactive_notice' );
30
  return;
31
  }
32
 
33
  // WC version check
34
  if ( version_compare( get_option( 'woocommerce_db_version' ), '2.4.13', '<' ) ) {
35
 
36
+ add_action( 'admin_notices', 'wc_customizer_render_outdated_wc_version_notice' );
37
  return;
38
  }
39
 
40
 
41
+ /**
42
+ * Renders a notice when WooCommerce version is outdated
43
+ *
44
+ * @since 2.3.1
45
+ */
46
+ function wc_customizer_render_outdated_wc_version_notice() {
47
+
48
+ $message = sprintf(
49
+ /* translators: %1$s and %2$s are <strong> tags. %3$s and %4$s are <a> tags */
50
+ __( '%1$sWooCommerce Customizer is inactive.%2$s This version requires WooCommerce 2.4.13 or newer. Please %3$supdate WooCommerce to version 2.4.13 or newer%4$s', 'woocommerce-customizer' ),
51
+ '<strong>',
52
+ '</strong>',
53
+ '<a href="' . admin_url( 'plugins.php' ) . '">',
54
+ '&nbsp;&raquo;</a>'
55
+ );
56
+
57
+ printf( '<div class="error"><p>%s</p></div>', $message );
58
+ }
59
+
60
+
61
+ /**
62
+ * Renders a notice when WooCommerce version is outdated
63
+ *
64
+ * @since 2.3.1
65
+ */
66
+ function wc_customizer_render_wc_inactive_notice() {
67
+
68
+ $message = sprintf(
69
+ /* translators: %1$s and %2$s are <strong> tags. %3$s and %4$s are <a> tags */
70
+ __( '%1$sWooCommerce Customizer is inactive%2$s as it requires WooCommerce. Please %3$sactivate WooCommerce version 2.4.13 or newer%4$s', 'woocommerce-customizer' ),
71
+ '<strong>',
72
+ '</strong>',
73
+ '<a href="' . admin_url( 'plugins.php' ) . '">',
74
+ '&nbsp;&raquo;</a>'
75
+ );
76
+
77
+ printf( '<div class="error"><p>%s</p></div>', $message );
78
+ }
79
+
80
+
81
  /**
82
  * # WooCommerce Customizer Main Plugin Class
83
  *
113
 
114
 
115
  /** plugin version number */
116
+ const VERSION = '2.3.1';
117
 
118
  /** @var \WC_Customizer single instance of this plugin */
119
  protected static $instance;
256
  }
257
 
258
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
259
  /** Frontend methods ******************************************************/
260
 
261