Plugin Directory

Changeset 3481305


Ignore:
Timestamp:
03/12/2026 03:57:09 PM (2 weeks ago)
Author:
IQComputing
Message:

Update to version 1.2.5 from GitHub

Location:
live-rates-for-shipstation
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • live-rates-for-shipstation/tags/1.2.5/changelog.txt

    r3460184 r3481305  
    22
    33This is a brief text document keeping track of changes to the plugin. For a full history, see the Github Repository.
     4
     5= 1.2.5 =
     6
     7Relase Date: March 12, 2026.
     8
     9* Overview
     10    * Fixes isset() isse when checking FROM address (Thanks @richecolocity)!
     11    * Fixes return value on WooCommerce Integration filter hook.
     12    * Adds new cache busting when WooCommerce > Settings > General options are saved.
     13        * This is important for when the shop address changes.
    414
    515= 1.2.4 =
  • live-rates-for-shipstation/tags/1.2.5/core/classes/shipping-calculator.php

    r3460184 r3481305  
    293293
    294294        // Log - Did not have all the necessary fields to run an API request on.
    295         } else if( empty( $from_arr['from_country_code'] ) || empty( $to_arr['from_postal_code'] ) ) {
     295        } else if( empty( $from_arr['from_country_code'] ) || empty( $from_arr['from_postal_code'] ) ) {
    296296            $this->log( esc_html__( 'Request missing a From Country Code and/or From Postal Code.', 'live-rates-for-shipstation' ), 'error' );
    297297        }
     
    321321        // 'to' may come from instance $args
    322322        $to = $this->get( 'to', $this->get( 'destination' ), array() );
    323         return array(
     323        return array_map( 'trim', array(
    324324            'to_country_code'    => ( isset( $to['country'] ) ) ? $to['country'] : '',
    325325            'to_postal_code'     => ( isset( $to['postcode'] ) ) ? $to['postcode'] : '',
    326326            'to_city_locality'   => ( isset( $to['city'] ) ) ? $to['city'] : '',
    327327            'to_state_province'  => ( isset( $to['state'] ) ) ? $to['state'] : '',
    328         );
     328        ) );
    329329
    330330    }
     
    365365        }
    366366
    367         return $from_arr;
     367        return array_map( 'trim', $from_arr );
    368368
    369369    }
  • live-rates-for-shipstation/tags/1.2.5/core/settings-shipstation.php

    r3460184 r3481305  
    4343        add_action( 'woocommerce_cart_totals_after_order_total',array( $this, 'display_cart_weight' ) ) ;
    4444        add_action( 'woocommerce_update_option',                array( $this, 'clear_cache_on_update' ) );
     45        add_action( 'woocommerce_update_options_general',       array( $this, 'clear_cache_on_settings_general' ) );
    4546
    4647    }
     
    277278
    278279
     280    /**
     281     * Clear teh cache whenever the WooCommerce > Settings > General has been updated.
     282     * This is important if the Store Address changes.
     283     *
     284     * Thanks Paul!
     285     *
     286     * @return void
     287     */
     288    function clear_cache_on_settings_general() {
     289        \IQLRSS\Driver::clear_cache();
     290    }
     291
     292
    279293
    280294    /**------------------------------------------------------------------------------------------------ **/
     
    323337
    324338        if( ! ( isset( $_GET, $_GET['section'] ) && 'shipstation' === $_GET['section'] ) ) {
    325             return;
     339            return $fields;
    326340        }
    327341
  • live-rates-for-shipstation/tags/1.2.5/core/shipping-method-shipstation.php

    r3460184 r3481305  
    802802    protected function check_packages_rate_cache( $packages ) {
    803803
    804 
    805804        /**
    806805         * Maybe skip cart caches.
  • live-rates-for-shipstation/tags/1.2.5/live-rates-for-shipstation.php

    r3460184 r3481305  
    44 * Plugin URI: https://iqcomputing.com/contact/
    55 * Description: ShipStation shipping method with live rates.
    6  * Version: 1.2.4
     6 * Version: 1.2.5
    77 * Requires at least: 6.2
    88 * Author: IQComputing
     
    2626     * @var String
    2727     */
    28     protected static $version = '1.2.4';
     28    protected static $version = '1.2.5';
    2929
    3030
  • live-rates-for-shipstation/tags/1.2.5/readme.txt

    r3460184 r3481305  
    44Requires at least: 6.2
    55Tested up to: 6.9
    6 Stable tag: 1.2.4
     6Stable tag: 1.2.5
    77License: GPLv3 or later
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    5151== Changelog ==
    5252
     53= 1.2.5 (2026-03-12) =
     54* Fixes isset() isse when checking FROM address (Thanks @richecolocity)!
     55* Fixes return value on WooCommerce Integration filter hook.
     56* Adds new cache busting when WooCommerce > Settings > General options are saved.
     57
    5358= 1.2.4 (2026-02-12) =
    5459* Adds new Integration Settings for a full uninstall/cleanup.
     
    5964* Patches issue of misnamed method call. (Thanks @centuryperf)!
    6065* Patches issue where warehouses would be called multiple times a request.
    61 
    62 = 1.2.2 (2026-02-04) =
    63 * Replaces PHP 8.5 func array_first with reset. (Thanks Theo)!
  • live-rates-for-shipstation/trunk/changelog.txt

    r3460184 r3481305  
    22
    33This is a brief text document keeping track of changes to the plugin. For a full history, see the Github Repository.
     4
     5= 1.2.5 =
     6
     7Relase Date: March 12, 2026.
     8
     9* Overview
     10    * Fixes isset() isse when checking FROM address (Thanks @richecolocity)!
     11    * Fixes return value on WooCommerce Integration filter hook.
     12    * Adds new cache busting when WooCommerce > Settings > General options are saved.
     13        * This is important for when the shop address changes.
    414
    515= 1.2.4 =
  • live-rates-for-shipstation/trunk/core/classes/shipping-calculator.php

    r3460184 r3481305  
    293293
    294294        // Log - Did not have all the necessary fields to run an API request on.
    295         } else if( empty( $from_arr['from_country_code'] ) || empty( $to_arr['from_postal_code'] ) ) {
     295        } else if( empty( $from_arr['from_country_code'] ) || empty( $from_arr['from_postal_code'] ) ) {
    296296            $this->log( esc_html__( 'Request missing a From Country Code and/or From Postal Code.', 'live-rates-for-shipstation' ), 'error' );
    297297        }
     
    321321        // 'to' may come from instance $args
    322322        $to = $this->get( 'to', $this->get( 'destination' ), array() );
    323         return array(
     323        return array_map( 'trim', array(
    324324            'to_country_code'    => ( isset( $to['country'] ) ) ? $to['country'] : '',
    325325            'to_postal_code'     => ( isset( $to['postcode'] ) ) ? $to['postcode'] : '',
    326326            'to_city_locality'   => ( isset( $to['city'] ) ) ? $to['city'] : '',
    327327            'to_state_province'  => ( isset( $to['state'] ) ) ? $to['state'] : '',
    328         );
     328        ) );
    329329
    330330    }
     
    365365        }
    366366
    367         return $from_arr;
     367        return array_map( 'trim', $from_arr );
    368368
    369369    }
  • live-rates-for-shipstation/trunk/core/settings-shipstation.php

    r3460184 r3481305  
    4343        add_action( 'woocommerce_cart_totals_after_order_total',array( $this, 'display_cart_weight' ) ) ;
    4444        add_action( 'woocommerce_update_option',                array( $this, 'clear_cache_on_update' ) );
     45        add_action( 'woocommerce_update_options_general',       array( $this, 'clear_cache_on_settings_general' ) );
    4546
    4647    }
     
    277278
    278279
     280    /**
     281     * Clear teh cache whenever the WooCommerce > Settings > General has been updated.
     282     * This is important if the Store Address changes.
     283     *
     284     * Thanks Paul!
     285     *
     286     * @return void
     287     */
     288    function clear_cache_on_settings_general() {
     289        \IQLRSS\Driver::clear_cache();
     290    }
     291
     292
    279293
    280294    /**------------------------------------------------------------------------------------------------ **/
     
    323337
    324338        if( ! ( isset( $_GET, $_GET['section'] ) && 'shipstation' === $_GET['section'] ) ) {
    325             return;
     339            return $fields;
    326340        }
    327341
  • live-rates-for-shipstation/trunk/core/shipping-method-shipstation.php

    r3460184 r3481305  
    802802    protected function check_packages_rate_cache( $packages ) {
    803803
    804 
    805804        /**
    806805         * Maybe skip cart caches.
  • live-rates-for-shipstation/trunk/live-rates-for-shipstation.php

    r3460184 r3481305  
    44 * Plugin URI: https://iqcomputing.com/contact/
    55 * Description: ShipStation shipping method with live rates.
    6  * Version: 1.2.4
     6 * Version: 1.2.5
    77 * Requires at least: 6.2
    88 * Author: IQComputing
     
    2626     * @var String
    2727     */
    28     protected static $version = '1.2.4';
     28    protected static $version = '1.2.5';
    2929
    3030
  • live-rates-for-shipstation/trunk/readme.txt

    r3460184 r3481305  
    44Requires at least: 6.2
    55Tested up to: 6.9
    6 Stable tag: 1.2.4
     6Stable tag: 1.2.5
    77License: GPLv3 or later
    88License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    5151== Changelog ==
    5252
     53= 1.2.5 (2026-03-12) =
     54* Fixes isset() isse when checking FROM address (Thanks @richecolocity)!
     55* Fixes return value on WooCommerce Integration filter hook.
     56* Adds new cache busting when WooCommerce > Settings > General options are saved.
     57
    5358= 1.2.4 (2026-02-12) =
    5459* Adds new Integration Settings for a full uninstall/cleanup.
     
    5964* Patches issue of misnamed method call. (Thanks @centuryperf)!
    6065* Patches issue where warehouses would be called multiple times a request.
    61 
    62 = 1.2.2 (2026-02-04) =
    63 * Replaces PHP 8.5 func array_first with reset. (Thanks Theo)!
Note: See TracChangeset for help on using the changeset viewer.