WP eCommerce - Version 3.8.12.1

Version Description

  • Fix: Fatal error in wpsc_product_list_exclude_child_categories() due to other themes or plugins calling get_posts() before the main query is set up
Download this release

Release Info

Developer garyc40
Plugin Icon 128x128 WP eCommerce
Version 3.8.12.1
Comparing to
See all releases

Code changes from version 3.8.12 to 3.8.12.1

.gitignore CHANGED
@@ -1 +1,2 @@
1
- .idea
 
1
+ cookbooks
2
+ tmp
readme.md CHANGED
@@ -15,7 +15,7 @@ If you're looking for general user support, please submit your support request o
15
  Development status
16
  -------------------------
17
 
18
- * The latest stable version is [3.8.12](http://wordpress.org/extend/plugins/wp-e-commerce).
19
  * Active development version: 3.8.13-dev (branch [master](https://github.com/wp-e-commerce/WP-e-Commerce))
20
  * [Roadmap for 3.8.13](https://github.com/wp-e-commerce/wp-e-commerce/wiki/Roadmap)
21
  * [3.8.13 tickets](https://github.com/wp-e-commerce/wp-e-commerce/issues?milestone=11&sort=updated&state=open)
15
  Development status
16
  -------------------------
17
 
18
+ * The latest stable version is [3.8.12.1](http://wordpress.org/extend/plugins/wp-e-commerce).
19
  * Active development version: 3.8.13-dev (branch [master](https://github.com/wp-e-commerce/WP-e-Commerce))
20
  * [Roadmap for 3.8.13](https://github.com/wp-e-commerce/wp-e-commerce/wiki/Roadmap)
21
  * [3.8.13 tickets](https://github.com/wp-e-commerce/wp-e-commerce/issues?milestone=11&sort=updated&state=open)
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.4
6
  Tested up to: 3.6
7
- Stable tag: 3.8.12
8
 
9
  WP e-Commerce is a free WordPress Shopping Cart Plugin that lets customers buy your products, services and digital downloads online.
10
 
@@ -146,6 +146,10 @@ After upgrading from earlier versions look for link "Update Store". This will up
146
 
147
  == Changelog ==
148
 
 
 
 
 
149
  = 3.8.12 =
150
  * New: Filter to hide drafts on the front-end: "wpsc_product_display_status"
151
  * New: Shipwire staging / production option
4
  Tags: e-commerce, wp-e-commerce, shop, cart, paypal, authorize, stock control, ecommerce, shipping, tax
5
  Requires at least: 3.4
6
  Tested up to: 3.6
7
+ Stable tag: 3.8.12.1
8
 
9
  WP e-Commerce is a free WordPress Shopping Cart Plugin that lets customers buy your products, services and digital downloads online.
10
 
146
 
147
  == Changelog ==
148
 
149
+ = 3.8.12.1 =
150
+ * Fix: Fatal error in wpsc_product_list_exclude_child_categories() due to other themes
151
+ or plugins calling get_posts() before the main query is set up
152
+
153
  = 3.8.12 =
154
  * New: Filter to hide drafts on the front-end: "wpsc_product_display_status"
155
  * New: Shipwire staging / production option
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="http://getshopped.org/forums/" target="_blank">Support Forum</a> | <a href="http://docs.getshopped.org/" target="_blank">Documentation</a>
6
- * Version: 3.8.12
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="http://getshopped.org/forums/" target="_blank">Support Forum</a> | <a href="http://docs.getshopped.org/" target="_blank">Documentation</a>
6
+ * Version: 3.8.12.1
7
  * Author: Instinct Entertainment
8
  * Author URI: http://getshopped.org/
9
  **/
wpsc-admin/display-items.page.php CHANGED
@@ -487,7 +487,7 @@ function wpsc_sortable_column_load() {
487
  */
488
  function wpsc_product_list_exclude_child_categories( $query ) {
489
 
490
- if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) )
491
  return;
492
 
493
  if ( 'edit-wpsc-product' == get_current_screen()->id ) {
487
  */
488
  function wpsc_product_list_exclude_child_categories( $query ) {
489
 
490
+ if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) || ! $query->is_main_query() )
491
  return;
492
 
493
  if ( 'edit-wpsc-product' == get_current_screen()->id ) {
wpsc-core/wpsc-constants.php CHANGED
@@ -28,9 +28,9 @@ function wpsc_core_constants() {
28
  if(!defined('WPSC_URL'))
29
  define( 'WPSC_URL', plugins_url( '', __FILE__ ) );
30
  // Define Plugin version
31
- define( 'WPSC_VERSION', '3.8.12' );
32
  define( 'WPSC_MINOR_VERSION', '55f8cfa0d7' );
33
- define( 'WPSC_PRESENTABLE_VERSION', '3.8.12' );
34
  define( 'WPSC_DB_VERSION', 4 );
35
 
36
  // Define Debug Variables for developers
28
  if(!defined('WPSC_URL'))
29
  define( 'WPSC_URL', plugins_url( '', __FILE__ ) );
30
  // Define Plugin version
31
+ define( 'WPSC_VERSION', '3.8.12.1' );
32
  define( 'WPSC_MINOR_VERSION', '55f8cfa0d7' );
33
+ define( 'WPSC_PRESENTABLE_VERSION', '3.8.12.1' );
34
  define( 'WPSC_DB_VERSION', 4 );
35
 
36
  // Define Debug Variables for developers