WP eCommerce - Version 3.8.14.3

Version Description

  • Fix: Added WordPress 4.0 compatibility.
  • Fix: Fixed stats class notices.
Download this release

Release Info

Developer JustinSainton
Plugin Icon 128x128 WP eCommerce
Version 3.8.14.3
Comparing to
See all releases

Code changes from version 3.8.14.2 to 3.8.14.3

readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: JustinSainton, mufasa, garyc40
3
  Donate link: http://getshopped.org
4
  Tags: e-commerce, wp-e-commerce, shop, cart, paypal, authorize, stock control, ecommerce, shipping, tax
5
- Requires at least: 3.7
6
- Tested up to: 3.9
7
- Stable tag: 3.8.14.2
8
 
9
  WP eCommerce is a free, powerful plugin that empowers you to sell anything online, quickly and easily.
10
 
@@ -36,6 +36,11 @@ After upgrading from earlier versions look for link "Update Store". This will up
36
 
37
  == Changelog ==
38
 
 
 
 
 
 
39
  = 3.8.14.2 =
40
 
41
  * Fix: Clear country cache automatically.
2
  Contributors: JustinSainton, mufasa, garyc40
3
  Donate link: http://getshopped.org
4
  Tags: e-commerce, wp-e-commerce, shop, cart, paypal, authorize, stock control, ecommerce, shipping, tax
5
+ Requires at least: 3.8
6
+ Tested up to: 4.0
7
+ Stable tag: 3.8.14.3
8
 
9
  WP eCommerce is a free, powerful plugin that empowers you to sell anything online, quickly and easily.
10
 
36
 
37
  == Changelog ==
38
 
39
+ = 3.8.14.3 =
40
+
41
+ * Fix: Added WordPress 4.0 compatibility.
42
+ * Fix: Fixed stats class notices.
43
+
44
  = 3.8.14.2 =
45
 
46
  * Fix: Clear country cache automatically.
wp-shopping-cart.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP e-Commerce
4
  * Plugin URI: http://getshopped.org/
5
  * Description: A plugin that provides a WordPress Shopping Cart. See also: <a href="http://getshopped.org" target="_blank">GetShopped.org</a> | <a href="https://wordpress.org/support/plugin/wp-e-commerce/" target="_blank">Support Forum</a> | <a href="http://docs.getshopped.org/" target="_blank">Documentation</a>
6
- * Version: 3.8.14.2
7
  * Author: Instinct Entertainment
8
  * Author URI: http://getshopped.org/
9
  **/
3
  * Plugin Name: WP e-Commerce
4
  * Plugin URI: http://getshopped.org/
5
  * Description: A plugin that provides a WordPress Shopping Cart. See also: <a href="http://getshopped.org" target="_blank">GetShopped.org</a> | <a href="https://wordpress.org/support/plugin/wp-e-commerce/" target="_blank">Support Forum</a> | <a href="http://docs.getshopped.org/" target="_blank">Documentation</a>
6
+ * Version: 3.8.14.3
7
  * Author: Instinct Entertainment
8
  * Author URI: http://getshopped.org/
9
  **/
wpsc-core/wpsc-constants.php CHANGED
@@ -53,15 +53,15 @@ function wpsc_core_constants() {
53
 
54
  // Define Plugin version
55
  if ( ! defined( 'WPSC_VERSION' ) ) {
56
- define( 'WPSC_VERSION' , '3.8.14.2' );
57
  }
58
 
59
  if ( ! defined( 'WPSC_MINOR_VERSION' ) ) {
60
- define( 'WPSC_MINOR_VERSION' , '457bac33939c68a1e6b1399275df1d05f0c4004a' );
61
  }
62
 
63
  if ( ! defined( 'WPSC_PRESENTABLE_VERSION' ) ) {
64
- define( 'WPSC_PRESENTABLE_VERSION', '3.8.14.2' );
65
  }
66
 
67
  // Define a salt to use when we hash, WPSC_SALT may be defined for us in our config file, so check first
53
 
54
  // Define Plugin version
55
  if ( ! defined( 'WPSC_VERSION' ) ) {
56
+ define( 'WPSC_VERSION' , '3.8.14.3' );
57
  }
58
 
59
  if ( ! defined( 'WPSC_MINOR_VERSION' ) ) {
60
+ define( 'WPSC_MINOR_VERSION' , '86c1a52' );
61
  }
62
 
63
  if ( ! defined( 'WPSC_PRESENTABLE_VERSION' ) ) {
64
+ define( 'WPSC_PRESENTABLE_VERSION', '3.8.14.3' );
65
  }
66
 
67
  // Define a salt to use when we hash, WPSC_SALT may be defined for us in our config file, so check first
wpsc-includes/purchase-log.class.php CHANGED
@@ -161,8 +161,10 @@ class WPSC_Purchase_Log {
161
  $needs_fetching[] = $product->post->ID;
162
  } else {
163
  // tally up the sales and earnings if this one has cache already
164
- $stats['sales'] += $product->sales;
165
- $stats['earnings'] += $product->earnings;
 
 
166
  }
167
  }
168
  }
161
  $needs_fetching[] = $product->post->ID;
162
  } else {
163
  // tally up the sales and earnings if this one has cache already
164
+ $prod_meta = get_post_meta( $product->post->ID, '_wpsc_stats', true );
165
+ $stats['sales'] += $prod_meta['sales'];
166
+ $stats['earnings'] += $prod_meta['earnings'];
167
+ $needs_fetching[] = $product->post->ID;
168
  }
169
  }
170
  }