Plugin Directory

Changeset 2192816


Ignore:
Timestamp:
11/14/2019 01:52:45 PM (6 years ago)
Author:
asaas
Message:

Committing 1.2.1 to trunk

Location:
woo-asaas/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • woo-asaas/trunk/includes/api/client/class-client.php

    r1976761 r2192816  
    8282        $response = $this->http->request(
    8383            $url, array(
    84                 'method'  => $method,
     84                'method'  => $method,
     85                'timeout'  => 10,
    8586                'body'    => wp_json_encode( $data ),
    8687                'headers' => array(
     
    139140        }
    140141
    141         $http_response = $response['http_response'];
    142 
    143         return array(
    144             'status' => $http_response->get_status(),
    145             'data'   => $http_response->get_data(),
    146         );
     142        if (is_wp_error($response)) {
     143            return array(
     144                'status' => $response->get_error_code(),
     145                'data'   => $response->get_error_data(),
     146            );
     147        } else {
     148            $http_response = $response['http_response'];
     149
     150            return array(
     151                'status' => $http_response->get_status(),
     152                'data'   => $http_response->get_data(),
     153            );
     154        }
    147155    }
    148156
  • woo-asaas/trunk/includes/class-wc-asaas.php

    r2030372 r2192816  
    2929     * @var string
    3030     */
    31     public $version = '1.2.0';
     31    public $version = '1.2.1';
    3232
    3333    /**
  • woo-asaas/trunk/readme.txt

    r2030372 r2192816  
    66Tested up to: 4.9.6
    77Requires PHP: 5.6
    8 Stable tag: 1.2.0
     8Stable tag: 1.2.1
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4747
    4848== Changelog ==
     49
     50= 1.2.1 =
     51* Fix - Fix webhook return on request error
     52* Fix - Request timeout was increaced
    4953
    5054= 1.2.0 =
  • woo-asaas/trunk/woo-asaas.php

    r2030372 r2192816  
    88 * Text Domain:     woo-asaas
    99 * Domain Path:     /languages
    10  * Version:         1.2.0
     10 * Version:         1.2.1
    1111 *
    1212 * @package         WooAsaas
Note: See TracChangeset for help on using the changeset viewer.