Plugin Directory

Changeset 3166348


Ignore:
Timestamp:
10/10/2024 08:58:26 AM (14 months ago)
Author:
gazchap
Message:

Fix another WP_Error issue

Location:
gazchaps-woocommerce-getaddress-io
Files:
12 added
3 edited

Legend:

Unmodified
Added
Removed
  • gazchaps-woocommerce-getaddress-io/trunk/class.api-client.php

    r3146359 r3166348  
    5656                    return $response;
    5757                } else {
    58                     throw new GazChap_WC_GetAddress_Plugin_Exception( $response, $response['response']['message'], $response['response']['code'] );
     58                    throw new GazChap_WC_GetAddress_Plugin_Exception( $response, $response['response']['message'], intval( $response['response']['code'] ) );
    5959                }
    6060            } else {
    61                 throw new GazChap_WC_GetAddress_Plugin_Exception( $response, $response->get_error_message(), $response->get_error_code() );
     61                throw new GazChap_WC_GetAddress_Plugin_Exception( $response, $response->get_error_message(), $response->get_error_code() ? intval( $response->get_error_code() ) : 0 );
    6262            }
    6363        }
  • gazchaps-woocommerce-getaddress-io/trunk/index.php

    r3146359 r3166348  
    33 * Plugin Name: GazChap's WooCommerce getAddress.io Postcode Lookup
    44 * Plugin URI: https://www.gazchap.com/posts/woocommerce-getaddress-io
    5  * Version: 3.2.2
     5 * Version: 3.2.3
    66 * Author: Gareth 'GazChap' Griffiths
    77 * Author URI: https://www.gazchap.com
  • gazchaps-woocommerce-getaddress-io/trunk/readme.txt

    r3146362 r3166348  
    88License: GNU General Public License v2.0
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    10 Stable tag: 3.2.2
     10Stable tag: 3.2.3
    1111Donate link: https://ko-fi.com/gazchap
    1212
     
    8383`gazchaps-woocommerce-getaddress-io_clear_additional_fields` - defaults to true, set to '__return_false' to stop the "additional fields" area of the checkout having a clear style applied to it
    8484
     85== Changelog ==
     86= 3.2.3 (10/10/2024) =
    8587
    86 == Changelog ==
     88* Bugfix - fixed another issue with WP_Errors. Thanks again to jhmaths for the report.
     89
    8790= 3.2.2 (04/09/2024) =
    8891
Note: See TracChangeset for help on using the changeset viewer.