Version Description
- Fix: Fatal error in Shipwire.
- Fix: Fatal error with customer meta on multisite.
- Fix: Fatal error with get_the_product_tags().
- Fix: Pagination in admin product list doesn't work.
- Fix: Permalinks are incorrect when products page is set as home page and permalink scheme is set to %post_name%.
- Fix: Rewrite rules are not regenerated correctly when switching from "Default" to "Post name".
- Fix: Shipwire and Google Analytics are not working properly.
- Fix: Shipwire request is sent even when Shipwire is not active.
- Fix: States are displayed as numbers in admin purchase report.
- Fix: Transaction results displaying cart content twice as well as "Oops, there is nothing in your cart".
- Fix: Use customer meta instead of $_SESSION for eway and payflow message.
- Fix: Variation pagination doesn't work.
Download this release
Release Info
Developer | garyc40 |
Plugin | WP eCommerce |
Version | 3.8.9.1 |
Comparing to | |
See all releases |
Code changes from version 3.8.9.1-dev to 3.8.9.1
- readme.txt +2 -0
- wp-shopping-cart.php +1 -1
- wpsc-admin/ajax-and-init.php +1 -1
- wpsc-admin/includes/product-variation-list-table.class.php +3 -0
- wpsc-admin/includes/purchase-log-list-table-class.php +1 -1
- wpsc-core/wpsc-constants.php +3 -3
- wpsc-core/wpsc-deprecated.php +9 -0
- wpsc-includes/cart.class.php +2 -0
- wpsc-includes/purchaselogs.class.php +2 -2
- wpsc-merchants/GoogleCheckout-XML.php +1 -1
readme.txt
CHANGED
@@ -158,6 +158,7 @@ After upgrading from earlier versions look for link "Update Store". This will up
|
|
158 |
= 3.8.9.1 =
|
159 |
* Fix: Fatal error in Shipwire.
|
160 |
* Fix: Fatal error with customer meta on multisite.
|
|
|
161 |
* Fix: Pagination in admin product list doesn't work.
|
162 |
* Fix: Permalinks are incorrect when products page is set as home page and permalink scheme is set to %post_name%.
|
163 |
* Fix: Rewrite rules are not regenerated correctly when switching from "Default" to "Post name".
|
@@ -166,6 +167,7 @@ After upgrading from earlier versions look for link "Update Store". This will up
|
|
166 |
* Fix: States are displayed as numbers in admin purchase report.
|
167 |
* Fix: Transaction results displaying cart content twice as well as "Oops, there is nothing in your cart".
|
168 |
* Fix: Use customer meta instead of $_SESSION for eway and payflow message.
|
|
|
169 |
|
170 |
= 3.8.9 =
|
171 |
* New: Additional columns can now be added to Store Sales page via filter hook.
|
158 |
= 3.8.9.1 =
|
159 |
* Fix: Fatal error in Shipwire.
|
160 |
* Fix: Fatal error with customer meta on multisite.
|
161 |
+
* Fix: Fatal error with get_the_product_tags().
|
162 |
* Fix: Pagination in admin product list doesn't work.
|
163 |
* Fix: Permalinks are incorrect when products page is set as home page and permalink scheme is set to %post_name%.
|
164 |
* Fix: Rewrite rules are not regenerated correctly when switching from "Default" to "Post name".
|
167 |
* Fix: States are displayed as numbers in admin purchase report.
|
168 |
* Fix: Transaction results displaying cart content twice as well as "Oops, there is nothing in your cart".
|
169 |
* Fix: Use customer meta instead of $_SESSION for eway and payflow message.
|
170 |
+
* Fix: Variation pagination doesn't work.
|
171 |
|
172 |
= 3.8.9 =
|
173 |
* New: Additional columns can now be added to Store Sales page via filter hook.
|
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.9.1
|
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.9.1
|
7 |
* Author: Instinct Entertainment
|
8 |
* Author URI: http://getshopped.org/
|
9 |
**/
|
wpsc-admin/ajax-and-init.php
CHANGED
@@ -91,7 +91,7 @@ if ( isset( $_REQUEST['ajax'] ) && isset( $_REQUEST['admin'] ) && ($_REQUEST['aj
|
|
91 |
|
92 |
function wpsc_change_currency() {
|
93 |
if ( is_numeric( $_POST['currencyid'] ) ) {
|
94 |
-
$currency_data = $wpdb->get_results( "SELECT `symbol`,`symbol_html`,`code` FROM `" . WPSC_TABLE_CURRENCY_LIST . "` WHERE `id
|
95 |
$price_out = null;
|
96 |
if ( $currency_data[0]['symbol'] != '' ) {
|
97 |
$currency_sign = $currency_data[0]['symbol_html'];
|
91 |
|
92 |
function wpsc_change_currency() {
|
93 |
if ( is_numeric( $_POST['currencyid'] ) ) {
|
94 |
+
$currency_data = $wpdb->get_results( $wpdb->prepare( "SELECT `symbol`,`symbol_html`,`code` FROM `" . WPSC_TABLE_CURRENCY_LIST . "` WHERE `id`=%d LIMIT 1", $_POST['currencyid'] ), ARRAY_A );
|
95 |
$price_out = null;
|
96 |
if ( $currency_data[0]['symbol'] != '' ) {
|
97 |
$currency_sign = $currency_data[0]['symbol_html'];
|
wpsc-admin/includes/product-variation-list-table.class.php
CHANGED
@@ -55,6 +55,9 @@ class WPSC_Product_Variation_List_Table extends WP_List_Table
|
|
55 |
if ( isset( $_REQUEST['s'] ) )
|
56 |
$this->args['s'] = $_REQUEST['s'];
|
57 |
|
|
|
|
|
|
|
58 |
$query = new WP_Query( $this->args );
|
59 |
|
60 |
$this->items = $query->posts;
|
55 |
if ( isset( $_REQUEST['s'] ) )
|
56 |
$this->args['s'] = $_REQUEST['s'];
|
57 |
|
58 |
+
if ( isset( $_REQUEST['paged'] ) )
|
59 |
+
$this->args['paged'] = $_REQUEST['paged'];
|
60 |
+
|
61 |
$query = new WP_Query( $this->args );
|
62 |
|
63 |
$this->items = $query->posts;
|
wpsc-admin/includes/purchase-log-list-table-class.php
CHANGED
@@ -316,7 +316,7 @@ class WPSC_Purchase_Log_List_Table extends WP_List_Table
|
|
316 |
|
317 |
if ( ! $this->month_filter ) {
|
318 |
if ( $m !== 0 )
|
319 |
-
echo '<input type="hidden" name="m" value="' . $m . '" />';
|
320 |
|
321 |
return false;
|
322 |
}
|
316 |
|
317 |
if ( ! $this->month_filter ) {
|
318 |
if ( $m !== 0 )
|
319 |
+
echo '<input type="hidden" name="m" value="' . esc_attr( $m ) . '" />';
|
320 |
|
321 |
return false;
|
322 |
}
|
wpsc-core/wpsc-constants.php
CHANGED
@@ -30,9 +30,9 @@ function wpsc_core_constants() {
|
|
30 |
if(!defined('WPSC_URL'))
|
31 |
define( 'WPSC_URL', plugins_url( '', __FILE__ ) );
|
32 |
// Define Plugin version
|
33 |
-
define( 'WPSC_VERSION', '3.8.9.1
|
34 |
-
define( 'WPSC_MINOR_VERSION', '
|
35 |
-
define( 'WPSC_PRESENTABLE_VERSION', '3.8.9.1
|
36 |
define( 'WPSC_DB_VERSION', 3 );
|
37 |
|
38 |
// Define Debug Variables for developers
|
30 |
if(!defined('WPSC_URL'))
|
31 |
define( 'WPSC_URL', plugins_url( '', __FILE__ ) );
|
32 |
// Define Plugin version
|
33 |
+
define( 'WPSC_VERSION', '3.8.9.1' );
|
34 |
+
define( 'WPSC_MINOR_VERSION', '622563' );
|
35 |
+
define( 'WPSC_PRESENTABLE_VERSION', '3.8.9.1' );
|
36 |
define( 'WPSC_DB_VERSION', 3 );
|
37 |
|
38 |
// Define Debug Variables for developers
|
wpsc-core/wpsc-deprecated.php
CHANGED
@@ -733,4 +733,13 @@ function wpsc_purchlog_is_checked_status() {
|
|
733 |
*/
|
734 |
function country_list( $selected_country = null ) {
|
735 |
return _wpsc_country_dropdown_options( array( 'selected' => $selected_country ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
736 |
}
|
733 |
*/
|
734 |
function country_list( $selected_country = null ) {
|
735 |
return _wpsc_country_dropdown_options( array( 'selected' => $selected_country ) );
|
736 |
+
}
|
737 |
+
|
738 |
+
/**
|
739 |
+
* @deprecated since 3.8.9. Use wpsc_get_the_product_tags() instead.
|
740 |
+
* @param integer $id Product ID
|
741 |
+
* @return array Product tags
|
742 |
+
*/
|
743 |
+
function get_the_product_tags( $id = 0 ) {
|
744 |
+
return wpsc_get_the_product_tags( $id );
|
745 |
}
|
wpsc-includes/cart.class.php
CHANGED
@@ -702,6 +702,8 @@ class wpsc_cart {
|
|
702 |
continue;
|
703 |
|
704 |
$raw_quotes = $wpsc_shipping_modules[$shipping_module]->getQuote();
|
|
|
|
|
705 |
foreach ( $raw_quotes as $name => $value ) {
|
706 |
if ( $min_value === false || $value < $min_value ) {
|
707 |
$min_value = $value;
|
702 |
continue;
|
703 |
|
704 |
$raw_quotes = $wpsc_shipping_modules[$shipping_module]->getQuote();
|
705 |
+
if ( empty( $raw_quotes ) || ! is_array( $raw_quotes ) )
|
706 |
+
continue;
|
707 |
foreach ( $raw_quotes as $name => $value ) {
|
708 |
if ( $min_value === false || $value < $min_value ) {
|
709 |
$min_value = $value;
|
wpsc-includes/purchaselogs.class.php
CHANGED
@@ -563,7 +563,7 @@ class wpsc_purchaselogs {
|
|
563 |
if ( $status == '' || $status == '-1' ) {
|
564 |
foreach ( (array)$dates as $date_pair ) {
|
565 |
if ( ($date_pair['end'] >= $this->earliest_timestamp) && ($date_pair['start'] <= $this->current_timestamp) ) {
|
566 |
-
$sql = "SELECT * FROM `" . WPSC_TABLE_PURCHASE_LOGS . "` WHERE `date` BETWEEN
|
567 |
$purchase_logs = $wpdb->get_results( $sql );
|
568 |
array_push( $purchlog2, $purchase_logs );
|
569 |
}
|
@@ -571,7 +571,7 @@ class wpsc_purchaselogs {
|
|
571 |
} else {
|
572 |
foreach ( (array)$dates as $date_pair ) {
|
573 |
if ( ($date_pair['end'] >= $this->earliest_timestamp) && ($date_pair['start'] <= $this->current_timestamp) ) {
|
574 |
-
$sql = "SELECT * FROM `" . WPSC_TABLE_PURCHASE_LOGS . "` WHERE `date` BETWEEN
|
575 |
$purchase_logs = $wpdb->get_results( $sql );
|
576 |
array_push( $purchlog2, $purchase_logs );
|
577 |
}
|
563 |
if ( $status == '' || $status == '-1' ) {
|
564 |
foreach ( (array)$dates as $date_pair ) {
|
565 |
if ( ($date_pair['end'] >= $this->earliest_timestamp) && ($date_pair['start'] <= $this->current_timestamp) ) {
|
566 |
+
$sql = $wpdb->prepare( "SELECT * FROM `" . WPSC_TABLE_PURCHASE_LOGS . "` WHERE `date` BETWEEN %s AND %s {$orderby}", $date_pair['start'], $date_pair['end'] );
|
567 |
$purchase_logs = $wpdb->get_results( $sql );
|
568 |
array_push( $purchlog2, $purchase_logs );
|
569 |
}
|
571 |
} else {
|
572 |
foreach ( (array)$dates as $date_pair ) {
|
573 |
if ( ($date_pair['end'] >= $this->earliest_timestamp) && ($date_pair['start'] <= $this->current_timestamp) ) {
|
574 |
+
$sql = $wpdb->prepare( "SELECT * FROM `" . WPSC_TABLE_PURCHASE_LOGS . "` WHERE `date` BETWEEN %s AND %s AND `processed`=%s {$orderby}", $date_pair['start'], $date_pair['end'], $status );
|
575 |
$purchase_logs = $wpdb->get_results( $sql );
|
576 |
array_push( $purchlog2, $purchase_logs );
|
577 |
}
|
wpsc-merchants/GoogleCheckout-XML.php
CHANGED
@@ -99,7 +99,7 @@ function gateway_google($fromcheckout = false){
|
|
99 |
array(
|
100 |
'totalprice' => $total,
|
101 |
'statusno' => 0,
|
102 |
-
'
|
103 |
'user_ID' => $user_ID,
|
104 |
'date' => time(),
|
105 |
'gateway' => 'google',
|
99 |
array(
|
100 |
'totalprice' => $total,
|
101 |
'statusno' => 0,
|
102 |
+
'sessionid' => $sessionid,
|
103 |
'user_ID' => $user_ID,
|
104 |
'date' => time(),
|
105 |
'gateway' => 'google',
|