Plugin Directory

Changeset 734585


Ignore:
Timestamp:
07/01/2013 11:10:27 AM (13 years ago)
Author:
garyc40
Message:

Merge with github

Location:
wp-e-commerce/branches/branch-3.8.12
Files:
6 edited

Legend:

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

    r725142 r734585  
    55Requires at least: 3.4
    66Tested up to: 3.6
    7 Stable tag: 3.8.11
     7Stable tag: 3.8.2
    88
    99WP e-Commerce is a free WordPress Shopping Cart Plugin that lets customers buy your products, services and digital downloads online.
     
    162162* Fix: Add to Cart button doesn't work
    163163* Fix: Can no longer upload customer attachments
     164* Fix: Deprecated warning for wp_convert_bytes_to_hr() function in WordPress 3.6
    164165
    165166
  • wp-e-commerce/branches/branch-3.8.12/wpsc-admin/includes/coupon-list-table-class.php

    r725142 r734585  
    406406        $where    = $status !== false ? "WHERE active = $status" : '';
    407407
    408         $order    = strtoupper( $_GET['order'] ) === 'ASC' ? 'ASC' : 'DESC';
     408        $order    = isset( $_GET['order'] ) && strtoupper( $_GET['order'] ) === 'ASC' ? 'ASC' : 'DESC';
    409409        $limit    = " LIMIT $offset,$per_page;";
    410410        $coupons  = $wpdb->get_results( "SELECT * FROM `" . WPSC_TABLE_COUPON_CODES . "` {$where} ORDER BY id {$order} {$limit} ", ARRAY_A );
  • wp-e-commerce/branches/branch-3.8.12/wpsc-admin/includes/product-functions.php

    r708401 r734585  
    88
    99function wpsc_get_max_upload_size(){
    10     return wp_convert_bytes_to_hr( wp_max_upload_size() );
     10    return size_format( wp_max_upload_size() );
    1111}
    1212
  • wp-e-commerce/branches/branch-3.8.12/wpsc-admin/includes/settings-tabs/shipping.php

    r725142 r734585  
    4848        foreach ( $wpsc_shipping_modules as $shipping ) {
    4949            foreach ( (array) $_POST['custom_shipping_options'] as $shippingoption ) {
    50                 if ( $shipping->internal_name == $shippingoption ) {
     50                if ( $shipping->getInternalName() == $shippingoption ) {
    5151                    $shipadd++;
    5252                }
     
    7272        if ( $found_selected_module ) {
    7373            $selected_module = $wpsc_shipping_modules[$selected_module_id];
    74             $title = $selected_module->name;
     74            $title = $selected_module->getName();
    7575            $content = apply_filters( 'wpsc_shipping_module_settings_form', $selected_module->getForm(), $selected_module );
    7676        } else {
     
    101101            'tab'                => 'shipping',
    102102            'page'               => 'wpsc-settings',
    103             'shipping_module_id' => $shipping->internal_name,
     103            'shipping_module_id' => $shipping->getInternalName(),
    104104        ), $location );
    105105        $location .= '#wpsc-shipping-module-options';
     
    270270                <?php
    271271                    foreach ( $internal_shipping_modules as $shipping ) {
    272                         $force = ( $shipping->internal_name === (string) get_user_option( 'wpsc_settings_selected_shipping_module', get_current_user_id() ) );
     272                        $force = ( $shipping->getInternalName() === (string) get_user_option( 'wpsc_settings_selected_shipping_module', get_current_user_id() ) );
    273273                        $this->shipping_list_item( $shipping, $force );
    274274                    }
     
    300300                <?php
    301301                    foreach ( $external_shipping_modules as $shipping ) {
    302                         $force = ( $shipping->internal_name === (string) get_user_option( 'wpsc_settings_selected_shipping_module', get_current_user_id() ) );
     302                        $force = ( $shipping->getInternalName() === (string) get_user_option( 'wpsc_settings_selected_shipping_module', get_current_user_id() ) );
    303303                        $this->shipping_list_item( $shipping, $force );
    304304                    }
     
    319319
    320320        ?>
    321             <tr class="wpsc-select-shipping <?php echo $shipping->active; ?>" data-shipping-id="<?php echo esc_attr( $shipping->internal_name ); ?>" id="shipping_list_item_<?php echo $shipping->internal_name;?>">
     321            <tr class="wpsc-select-shipping <?php echo $shipping->active; ?>" data-shipping-id="<?php echo esc_attr( $shipping->getInternalName() ); ?>" id="shipping_list_item_<?php echo $shipping->getInternalName();?>">
    322322                <th scope="row" class="check-column">
    323                     <input name='custom_shipping_options[]' <?php disabled( $shipping->disabled ); ?> <?php checked( $shipping->checked ); ?> type='checkbox' value='<?php echo $shipping->internal_name; ?>' id='<?php echo $shipping->internal_name; ?>_id' />
     323                    <input name='custom_shipping_options[]' <?php disabled( $shipping->disabled ); ?> <?php checked( $shipping->checked ); ?> type='checkbox' value='<?php echo $shipping->getInternalName(); ?>' id='<?php echo $shipping->getInternalName(); ?>_id' />
    324324                </th>
    325325                <td class="plugin-title">
    326                     <label for='<?php echo $shipping->internal_name; ?>_id'><strong><?php echo $shipping->name; ?></strong></label>
     326                    <label for='<?php echo $shipping->getInternalName(); ?>_id'><strong><?php echo $shipping->getName(); ?></strong></label>
    327327                    <div class="row-actions-visible">
    328328                        <span class="edit">
    329                             <a class='edit-shipping-module' data-module-id="<?php echo $shipping->internal_name; ?>" title="<?php esc_attr_e( 'Edit this Shipping Module', 'wpsc' ); ?>" href='<?php echo esc_url( $this->get_shipping_module_url( $shipping ) ); ?>'><?php _ex( 'Settings', 'Shipping modules link to individual settings', 'wpsc' ); ?>
     329                            <a class='edit-shipping-module' data-module-id="<?php echo $shipping->getInternalName(); ?>" title="<?php esc_attr_e( 'Edit this Shipping Module', 'wpsc' ); ?>" href='<?php echo esc_url( $this->get_shipping_module_url( $shipping ) ); ?>'><?php _ex( 'Settings', 'Shipping modules link to individual settings', 'wpsc' ); ?>
    330330                            <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-feedback" title="" alt="" />
    331331                        </span>
     
    333333                </td>
    334334            </tr>
    335             <tr id="wpsc_shipping_settings_<?php echo esc_attr( $shipping->internal_name ); ?>" data-shipping-id="<?php echo esc_attr( $shipping->internal_name ); ?>" class='wpsc-select-shipping <?php echo $shipping->active; ?>' <?php echo $shipping->hidden; ?> >
    336                 <td colspan="3" id="wpsc_shipping_settings_<?php echo esc_attr( $shipping->internal_name ); ?>_container">
    337                     <?php $this->display_shipping_module_settings_form( $shipping->internal_name ); ?>
     335            <tr id="wpsc_shipping_settings_<?php echo esc_attr( $shipping->getInternalName() ); ?>" data-shipping-id="<?php echo esc_attr( $shipping->getInternalName() ); ?>" class='wpsc-select-shipping <?php echo $shipping->active; ?>' <?php echo $shipping->hidden; ?> >
     336                <td colspan="3" id="wpsc_shipping_settings_<?php echo esc_attr( $shipping->getInternalName() ); ?>_container">
     337                    <?php $this->display_shipping_module_settings_form( $shipping->getInternalName() ); ?>
    338338                </td>
    339339            </tr>
  • wp-e-commerce/branches/branch-3.8.12/wpsc-admin/init.php

    r725142 r734585  
    188188        }
    189189        // Get the most number of products and create a header for them
    190         $headers3 = "";
     190        $headers3 = array();
    191191        for( $i = 0; $i < $count; $i++ ){
    192192            $headers3[] = _x( 'Quantity', 'purchase log csv headers', 'wpsc' );
     
    202202        $headers      = apply_filters( 'wpsc_purchase_log_csv_headers', $headers . $form_headers . $headers2 . $headers3, $data, $form_data );
    203203        $output       = apply_filters( 'wpsc_purchase_log_csv_output', $output, $data, $form_data );
     204        do_action( 'wpsc_purchase_log_csv' );
    204205        header( 'Content-Type: text/csv' );
    205206        header( 'Content-Disposition: inline; filename="' . $csv_name . '"' );
  • wp-e-commerce/branches/branch-3.8.12/wpsc-admin/js/settings-page.js

    r725142 r734585  
    310310            wrapper.on( 'click', '#wpsc-delete-checkout-set', WPSC_Settings_Page.Checkout.event_delete_checkout_set);
    311311            wrapper.on( 'change', '#wpsc_form_set', WPSC_Settings_Page.Checkout.event_select_form_set);
    312             wrapper.on( 'click', '.mandatorycol input[type="checkbox"]', WPSC_Settings_Page.Checkout.event_disabled_toggeled);
     312            wrapper.on( 'click', '.mandatorycol input[type="checkbox"]', WPSC_Settings_Page.Checkout.event_disabled_toggled);
    313313            $('#wpsc-settings-form').on( 'submit', WPSC_Settings_Page.Checkout.event_form_submit);
    314314
     
    334334             */
    335335            wrapper.find( '.mandatorycol input[type="checkbox"]').each( function(){
    336                 var displaycol = $(this).parents('.mandatorycol').siblings('.displaycol');
    337 
    338                 if ( $(this).is(':checked') ){
    339                     $(displaycol).find('input[type="checkbox"]').prop('checked', true ).attr( 'disabled', 'disabled' );
     336                var displaycol = $( this ).parents( '.mandatorycol' ).siblings( '.displaycol' );
     337
     338                if ( $( this ).is( ':checked' ) ) {
     339                    $( displaycol ).find( 'input[type="checkbox"]' ).prop( 'checked', true ).prop( 'readonly', true );
    340340                } else {
    341                     $(displaycol).find('input[type="checkbox"]').attr( 'disabled', this.checked );
     341                    $( displaycol ).find( 'input[type="checkbox"]' ).prop( 'readonly', this.checked );
    342342                }
    343343            });
     
    577577         * mandatory then it just enables you to uncheck the display box.
    578578         */
    579         event_disabled_toggeled : function() {
    580 
    581             var displaycol = $(this).parents('.mandatorycol').siblings('.displaycol');
    582 
    583             if ( $(this).is(':checked') ){
    584                 $(displaycol).find('input[type="checkbox"]').prop('checked', true ).attr( 'disabled', 'disabled' );
     579        event_disabled_toggled : function() {
     580
     581            var displaycol = $( this ).parents( '.mandatorycol' ).siblings( '.displaycol' );
     582
     583            if ( $( this ).is( ':checked' ) ) {
     584                $( displaycol ).find( 'input[type="checkbox"]' ).prop( 'checked', true ).prop( 'readonly', true );
    585585            } else {
    586                  $(displaycol).find('input[type="checkbox"]').attr( 'disabled', this.checked );
     586                 $( displaycol ).find( 'input[type="checkbox"]' ).prop( 'readonly', this.checked );
    587587            }
    588588        },
Note: See TracChangeset for help on using the changeset viewer.