Plugin Directory

Changeset 1727837


Ignore:
Timestamp:
09/11/2017 03:27:23 AM (9 years ago)
Author:
jeyapriya
Message:

New revision updated for the sub-folder timeout issues and parameter declaration under calculate_shipping

Location:
yakit/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • yakit/trunk/readme.txt

    r1724452 r1727837  
    6767== Changelog ==
    6868
     69= v1.2.2 (2017-09-11) =
     70* Updated the rate api timeout - 10000 to wp_remote_get parameter
     71* Declared the null array if no parameter set in calculate_shipping
     72
    6973= v1.2.1 (2017-09-04) =
    7074* Set the rate api timeout - 500 to wp_remote_get parameter
  • yakit/trunk/yakit-shipping.php

    r1724452 r1727837  
    44 * Plugin URI: https://www.yakit.com/woocommerce/yakit-for-woocommerce/
    55 * Description: * Transparent pricing with no minimums or monthly charges. * Guaranteed duties and taxes along with shipping cost in your shopping cart. * Ship internationally to more than 45 countries now!
    6  * Version: 1.2.1
     6 * Version: 1.2.2
    77 * Author: Yakit
    88 * Author URI: https://www.yakit.com/
     
    103103                 * @return void
    104104                 */
    105                 public function calculate_shipping( $package ) {
     105                public function calculate_shipping( $package=array() ) {
    106106                    global $woocommerce;
    107107                    $this->instance_settings = get_option( $this->get_instance_option_key(), null );
     
    159159                                'body'        => $check,
    160160                                'sslverify'   => 'false',
    161                                 'timeout'     => 500
     161                                'timeout'     => 10000
    162162                             );
    163163                    $res = wp_remote_get( $url, $args );
Note: See TracChangeset for help on using the changeset viewer.