WordPress.org

Plugin Directory

Changeset 622563


Ignore:
Timestamp:
11/08/12 14:25:36 (18 months ago)
Author:
garyc40
Message:

Updated to latest 3.8 dev.

Location:
wp-e-commerce/branches/branch-3.8
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • wp-e-commerce/branches/branch-3.8/readme.txt

    r621714 r622563  
    159159* Fix: Fatal error in Shipwire. 
    160160* Fix: Fatal error with customer meta on multisite. 
     161* Fix: Fatal error with get_the_product_tags(). 
    161162* Fix: Pagination in admin product list doesn't work. 
    162163* Fix: Permalinks are incorrect when products page is set as home page and permalink scheme is set to %post_name%. 
     
    167168* Fix: Transaction results displaying cart content twice as well as "Oops, there is nothing in your cart". 
    168169* Fix: Use customer meta instead of $_SESSION for eway and payflow message. 
     170* Fix: Variation pagination doesn't work. 
    169171 
    170172= 3.8.9 = 
  • wp-e-commerce/branches/branch-3.8/wpsc-admin/ajax-and-init.php

    r618697 r622563  
    9292function wpsc_change_currency() { 
    9393    if ( is_numeric( $_POST['currencyid'] ) ) { 
    94         $currency_data = $wpdb->get_results( "SELECT `symbol`,`symbol_html`,`code` FROM `" . WPSC_TABLE_CURRENCY_LIST . "` WHERE `id`='" . $_POST['currencyid'] . "' LIMIT 1", ARRAY_A ); 
     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 ); 
    9595        $price_out = null; 
    9696        if ( $currency_data[0]['symbol'] != '' ) { 
  • wp-e-commerce/branches/branch-3.8/wpsc-admin/includes/product-variation-list-table.class.php

    r618697 r622563  
    5555        if ( isset( $_REQUEST['s'] ) ) 
    5656            $this->args['s'] = $_REQUEST['s']; 
     57 
     58        if ( isset( $_REQUEST['paged'] ) ) 
     59            $this->args['paged'] = $_REQUEST['paged']; 
    5760 
    5861        $query = new WP_Query( $this->args ); 
  • wp-e-commerce/branches/branch-3.8/wpsc-admin/includes/purchase-log-list-table-class.php

    r618697 r622563  
    317317        if ( ! $this->month_filter ) { 
    318318            if ( $m !== 0 ) 
    319                 echo '<input type="hidden" name="m" value="' . $m . '" />'; 
     319                echo '<input type="hidden" name="m" value="' . esc_attr( $m ) . '" />'; 
    320320 
    321321            return false; 
  • wp-e-commerce/branches/branch-3.8/wpsc-core/wpsc-deprecated.php

    r618697 r622563  
    735735    return _wpsc_country_dropdown_options( array( 'selected' => $selected_country ) ); 
    736736} 
     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 */ 
     743function get_the_product_tags( $id = 0 ) { 
     744    return wpsc_get_the_product_tags( $id ); 
     745} 
  • wp-e-commerce/branches/branch-3.8/wpsc-includes/cart.class.php

    r618697 r622563  
    703703 
    704704               $raw_quotes = $wpsc_shipping_modules[$shipping_module]->getQuote(); 
     705               if ( empty( $raw_quotes ) || ! is_array( $raw_quotes ) ) 
     706                  continue; 
    705707               foreach ( $raw_quotes as $name => $value ) { 
    706708                  if ( $min_value === false || $value < $min_value ) { 
  • wp-e-commerce/branches/branch-3.8/wpsc-includes/purchaselogs.class.php

    r610713 r622563  
    564564         foreach ( (array)$dates as $date_pair ) { 
    565565            if ( ($date_pair['end'] >= $this->earliest_timestamp) && ($date_pair['start'] <= $this->current_timestamp) ) { 
    566                $sql = "SELECT * FROM `" . WPSC_TABLE_PURCHASE_LOGS . "` WHERE `date` BETWEEN '" . $date_pair['start'] . "' AND '" . $date_pair['end'] . $orderby; 
     566               $sql = $wpdb->prepare( "SELECT * FROM `" . WPSC_TABLE_PURCHASE_LOGS . "` WHERE `date` BETWEEN %s AND %s {$orderby}", $date_pair['start'], $date_pair['end'] ); 
    567567               $purchase_logs = $wpdb->get_results( $sql ); 
    568568               array_push( $purchlog2, $purchase_logs ); 
     
    572572         foreach ( (array)$dates as $date_pair ) { 
    573573            if ( ($date_pair['end'] >= $this->earliest_timestamp) && ($date_pair['start'] <= $this->current_timestamp) ) { 
    574                $sql = "SELECT * FROM `" . WPSC_TABLE_PURCHASE_LOGS . "` WHERE `date` BETWEEN '" . $date_pair['start'] . "' AND '" . $date_pair['end'] . "' AND `processed`='" . $status . $orderby; 
     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 ); 
    575575               $purchase_logs = $wpdb->get_results( $sql ); 
    576576               array_push( $purchlog2, $purchase_logs ); 
  • wp-e-commerce/branches/branch-3.8/wpsc-merchants/GoogleCheckout-XML.php

    r586469 r622563  
    100100                'totalprice' => $total, 
    101101                'statusno' => 0, 
    102                 'sessionind' => $sessionid, 
     102                'sessionid' => $sessionid, 
    103103                'user_ID' => $user_ID, 
    104104                'date' => time(), 
Note: See TracChangeset for help on using the changeset viewer.