WooCommerce Sequential Order Numbers - Version 1.2.3

Version Description

  • Removed WooCommerce functions, which caused a compatibility issue with other WooCommerce plugins
Download this release

Release Info

Developer FoxRunSoftware
Plugin Icon WooCommerce Sequential Order Numbers
Version 1.2.3
Comparing to
See all releases

Code changes from version 1.2.2 to 1.2.3

readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: FoxRunSoftware
3
  Tags: woocommerce, order number
4
  Requires at least: 3.3
5
  Tested up to: 3.3
6
- Stable tag: 1.2.2
7
 
8
  This plugin extends the WooCommerce e-commerce plugin by setting sequential order numbers for new orders.
9
 
@@ -41,6 +41,9 @@ This free version does not have that functionality, but now you can with the pai
41
 
42
  == Changelog ==
43
 
 
 
 
44
  = 1.2.2 =
45
  * Takes advantage of new action hooks/filters available in WooCommerce 1.5.6
46
  * Bug fix on installation to stores with more than 10 existing orders
3
  Tags: woocommerce, order number
4
  Requires at least: 3.3
5
  Tested up to: 3.3
6
+ Stable tag: 1.2.3
7
 
8
  This plugin extends the WooCommerce e-commerce plugin by setting sequential order numbers for new orders.
9
 
41
 
42
  == Changelog ==
43
 
44
+ = 1.2.3 =
45
+ * Removed WooCommerce functions, which caused a compatibility issue with other WooCommerce plugins
46
+
47
  = 1.2.2 =
48
  * Takes advantage of new action hooks/filters available in WooCommerce 1.5.6
49
  * Bug fix on installation to stores with more than 10 existing orders
woo-includes/class-wc-dependencies.php DELETED
@@ -1,30 +0,0 @@
1
- <?php
2
- /**
3
- * WC Dependency Checker
4
- *
5
- * Checks if WooCommerce is enabled
6
- */
7
- class WC_Dependencies {
8
-
9
- private static $active_plugins;
10
-
11
- function init() {
12
-
13
- self::$active_plugins = (array) get_option( 'active_plugins', array() );
14
-
15
- if ( is_multisite() )
16
- self::$active_plugins = array_merge( self::$active_plugins, get_site_option( 'active_sitewide_plugins', array() ) );
17
-
18
- }
19
-
20
- function woocommerce_active_check() {
21
-
22
- if ( ! self::$active_plugins ) self::init();
23
-
24
- return in_array('woocommerce/woocommerce.php', self::$active_plugins) || array_key_exists('woocommerce/woocommerce.php', self::$active_plugins);
25
-
26
- }
27
-
28
- }
29
-
30
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
woo-includes/woo-functions.php DELETED
@@ -1,15 +0,0 @@
1
- <?php
2
- /**
3
- * Functions used by plugins
4
- */
5
-
6
- if ( ! class_exists( 'WC_Dependencies' ) ) require_once( 'class-wc-dependencies.php' );
7
-
8
- /**
9
- * WC Detection
10
- **/
11
- function is_woocommerce_active() {
12
-
13
- return WC_Dependencies::woocommerce_active_check();
14
-
15
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
woocommerce-sequential-order-numbers.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.foxrunsoftware.net/articles/wordpress/woocommerce-sequent
5
  Description: Provides sequential order numbers for WooCommerce orders
6
  Author: Justin Stern
7
  Author URI: http://www.foxrunsoftware.net
8
- Version: 1.2.2
9
 
10
  Copyright: � 2012 Justin Stern (email : justin@foxrunsoftware.net)
11
  License: GNU General Public License v3.0
@@ -15,14 +15,12 @@ Version: 1.2.2
15
  /**
16
  * Required functions
17
  **/
18
- if ( ! function_exists( 'is_woocommerce_active' ) ) require_once( 'woo-includes/woo-functions.php' );
19
-
20
-
21
- if ( is_woocommerce_active() ) {
22
  if ( ! class_exists( 'WC_Seq_Order_Number' ) ) {
23
 
24
  class WC_Seq_Order_Number {
25
- const VERSION = "1.2.2";
26
  const VERSION_OPTION_NAME = "woocommerce_seq_order_number_db_version";
27
 
28
  public function __construct() {
5
  Description: Provides sequential order numbers for WooCommerce orders
6
  Author: Justin Stern
7
  Author URI: http://www.foxrunsoftware.net
8
+ Version: 1.2.3
9
 
10
  Copyright: � 2012 Justin Stern (email : justin@foxrunsoftware.net)
11
  License: GNU General Public License v3.0
15
  /**
16
  * Required functions
17
  **/
18
+ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
19
+
 
 
20
  if ( ! class_exists( 'WC_Seq_Order_Number' ) ) {
21
 
22
  class WC_Seq_Order_Number {
23
+ const VERSION = "1.2.3";
24
  const VERSION_OPTION_NAME = "woocommerce_seq_order_number_db_version";
25
 
26
  public function __construct() {