Plugin Directory

Changeset 3283451


Ignore:
Timestamp:
04/28/2025 01:40:13 PM (10 months ago)
Author:
gocardless
Message:

Update to version 2.9.4 from GitHub

Location:
woocommerce-gateway-gocardless
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • woocommerce-gateway-gocardless/tags/2.9.4/changelog.txt

    r3260847 r3283451  
    11*** GoCardless for WooCommerce Changelog ***
     2
     32025-04-28 - version 2.9.4
     4* Fix - Ensure that the subscription is cancelled immediately when the payment is cancelled.
     5* Fix - Resolved "translation loading was triggered too early" issue in WordPress 6.7.
     6* Dev - Bump WordPress "tested up to" version 6.8.
     7* Dev - Run E2E tests on the zip generated by the `generate-zip` workflow and ensure it runs on every pull request by default.
    28
    392025-03-24 - version 2.9.3
  • woocommerce-gateway-gocardless/tags/2.9.4/includes/class-wc-gocardless-gateway.php

    r3260847 r3283451  
    18881888        }
    18891889
     1890        /*
     1891        * Skip the Pending Cancel status for subscriptions.
     1892        *
     1893        * Subscriptions orders are updated to the "processing" status without confirmed payment.
     1894        * If a payment is cancelled, the subscription must be cancelled immediately.
     1895        *
     1896        * @see https://github.com/woocommerce/woocommerce-gateway-gocardless-private/issues/75
     1897        */
     1898        add_filter( 'woocommerce_subscription_use_pending_cancel', '__return_false' );
     1899
    18901900        if ( ! empty( $new_status ) ) {
    18911901            $note = ! empty( $event['details']['description'] ) ? $event['details']['description'] : '';
     
    19201930            }
    19211931        }
     1932
     1933        // Remove the filter added above.
     1934        remove_filter( 'woocommerce_subscription_use_pending_cancel', '__return_false' );
    19221935
    19231936        return true;
  • woocommerce-gateway-gocardless/tags/2.9.4/includes/class-wc-gocardless-privacy.php

    r3239558 r3283451  
    2323     */
    2424    public function __construct() {
    25         parent::__construct( __( 'Direct Debit (GoCardless)', 'woocommerce-gateway-gocardless' ) );
     25        parent::__construct();
     26
     27        // Initialize data exporters and erasers.
     28        add_action( 'init', array( $this, 'register_erasers_exporters' ) );
     29    }
     30
     31    /**
     32     * Initial registration of privacy erasers and exporters.
     33     */
     34    public function register_erasers_exporters() {
     35        $this->name = __( 'Direct Debit (GoCardless)', 'woocommerce-gateway-gocardless' );
    2636
    2737        $this->add_exporter( 'woocommerce-gateway-gocardless-order-data', __( 'WooCommerce GoCardless Order Data', 'woocommerce-gateway-gocardless' ), array( $this, 'order_data_exporter' ) );
  • woocommerce-gateway-gocardless/tags/2.9.4/readme.txt

    r3260847 r3283451  
    22Contributors: gocardless, woocommerce, automattic
    33Tags:         gocardless, woocommerce, direct debit, instant bank pay
    4 Tested up to: 6.7
    5 Stable tag:   2.9.3
     4Tested up to: 6.8
     5Stable tag:   2.9.4
    66License:      GPL-3.0-or-later
    77License URI:  https://spdx.org/licenses/GPL-3.0-or-later.html
     
    140140
    141141== Changelog ==
     142
     143= 2.9.4 - 2025-04-28 =
     144* Fix - Ensure that the subscription is cancelled immediately when the payment is cancelled.
     145* Fix - Resolved "translation loading was triggered too early" issue in WordPress 6.7.
     146* Dev - Bump WordPress "tested up to" version 6.8.
     147* Dev - Run E2E tests on the zip generated by the `generate-zip` workflow and ensure it runs on every pull request by default.
    142148
    143149= 2.9.3 - 2025-03-24 =
  • woocommerce-gateway-gocardless/tags/2.9.4/woocommerce-gateway-gocardless.php

    r3260847 r3283451  
    44 * Plugin URI:           https://www.woocommerce.com/products/gocardless/
    55 * Description:          Extends both WooCommerce and WooCommerce Subscriptions with the GoCardless Payment Gateway. A GoCardless merchant account is required.
    6  * Version:              2.9.3
     6 * Version:              2.9.4
    77 * Requires at least:    6.6
    88 * Requires PHP:         7.4
     
    3939     * @var string
    4040     */
    41     public $version = '2.9.3'; // WRCS: DEFINED_VERSION.
     41    public $version = '2.9.4'; // WRCS: DEFINED_VERSION.
    4242
    4343    /**
     
    8686        add_filter( 'woocommerce_payment_gateways', array( $this, 'register_gateway' ) );
    8787        add_action( 'admin_notices', array( $this, 'environment_check' ) );
     88        add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
    8889
    8990        $this->plugin_path = untrailingslashit( plugin_dir_path( __FILE__ ) );
     
    238239        $reports_handler->init();
    239240
     241        add_action( 'init', array( $this, 'init_order_admin' ) );
     242    }
     243
     244    /**
     245     * Load plugin text domain for translation.
     246     */
     247    public function load_plugin_textdomain() {
    240248        // Localisation.
    241249        load_plugin_textdomain( 'woocommerce-gateway-gocardless', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
    242 
    243         add_action( 'init', array( $this, 'init_order_admin' ) );
    244250    }
    245251
  • woocommerce-gateway-gocardless/trunk/changelog.txt

    r3260847 r3283451  
    11*** GoCardless for WooCommerce Changelog ***
     2
     32025-04-28 - version 2.9.4
     4* Fix - Ensure that the subscription is cancelled immediately when the payment is cancelled.
     5* Fix - Resolved "translation loading was triggered too early" issue in WordPress 6.7.
     6* Dev - Bump WordPress "tested up to" version 6.8.
     7* Dev - Run E2E tests on the zip generated by the `generate-zip` workflow and ensure it runs on every pull request by default.
    28
    392025-03-24 - version 2.9.3
  • woocommerce-gateway-gocardless/trunk/includes/class-wc-gocardless-gateway.php

    r3260847 r3283451  
    18881888        }
    18891889
     1890        /*
     1891        * Skip the Pending Cancel status for subscriptions.
     1892        *
     1893        * Subscriptions orders are updated to the "processing" status without confirmed payment.
     1894        * If a payment is cancelled, the subscription must be cancelled immediately.
     1895        *
     1896        * @see https://github.com/woocommerce/woocommerce-gateway-gocardless-private/issues/75
     1897        */
     1898        add_filter( 'woocommerce_subscription_use_pending_cancel', '__return_false' );
     1899
    18901900        if ( ! empty( $new_status ) ) {
    18911901            $note = ! empty( $event['details']['description'] ) ? $event['details']['description'] : '';
     
    19201930            }
    19211931        }
     1932
     1933        // Remove the filter added above.
     1934        remove_filter( 'woocommerce_subscription_use_pending_cancel', '__return_false' );
    19221935
    19231936        return true;
  • woocommerce-gateway-gocardless/trunk/includes/class-wc-gocardless-privacy.php

    r3239558 r3283451  
    2323     */
    2424    public function __construct() {
    25         parent::__construct( __( 'Direct Debit (GoCardless)', 'woocommerce-gateway-gocardless' ) );
     25        parent::__construct();
     26
     27        // Initialize data exporters and erasers.
     28        add_action( 'init', array( $this, 'register_erasers_exporters' ) );
     29    }
     30
     31    /**
     32     * Initial registration of privacy erasers and exporters.
     33     */
     34    public function register_erasers_exporters() {
     35        $this->name = __( 'Direct Debit (GoCardless)', 'woocommerce-gateway-gocardless' );
    2636
    2737        $this->add_exporter( 'woocommerce-gateway-gocardless-order-data', __( 'WooCommerce GoCardless Order Data', 'woocommerce-gateway-gocardless' ), array( $this, 'order_data_exporter' ) );
  • woocommerce-gateway-gocardless/trunk/readme.txt

    r3260847 r3283451  
    22Contributors: gocardless, woocommerce, automattic
    33Tags:         gocardless, woocommerce, direct debit, instant bank pay
    4 Tested up to: 6.7
    5 Stable tag:   2.9.3
     4Tested up to: 6.8
     5Stable tag:   2.9.4
    66License:      GPL-3.0-or-later
    77License URI:  https://spdx.org/licenses/GPL-3.0-or-later.html
     
    140140
    141141== Changelog ==
     142
     143= 2.9.4 - 2025-04-28 =
     144* Fix - Ensure that the subscription is cancelled immediately when the payment is cancelled.
     145* Fix - Resolved "translation loading was triggered too early" issue in WordPress 6.7.
     146* Dev - Bump WordPress "tested up to" version 6.8.
     147* Dev - Run E2E tests on the zip generated by the `generate-zip` workflow and ensure it runs on every pull request by default.
    142148
    143149= 2.9.3 - 2025-03-24 =
  • woocommerce-gateway-gocardless/trunk/woocommerce-gateway-gocardless.php

    r3260847 r3283451  
    44 * Plugin URI:           https://www.woocommerce.com/products/gocardless/
    55 * Description:          Extends both WooCommerce and WooCommerce Subscriptions with the GoCardless Payment Gateway. A GoCardless merchant account is required.
    6  * Version:              2.9.3
     6 * Version:              2.9.4
    77 * Requires at least:    6.6
    88 * Requires PHP:         7.4
     
    3939     * @var string
    4040     */
    41     public $version = '2.9.3'; // WRCS: DEFINED_VERSION.
     41    public $version = '2.9.4'; // WRCS: DEFINED_VERSION.
    4242
    4343    /**
     
    8686        add_filter( 'woocommerce_payment_gateways', array( $this, 'register_gateway' ) );
    8787        add_action( 'admin_notices', array( $this, 'environment_check' ) );
     88        add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
    8889
    8990        $this->plugin_path = untrailingslashit( plugin_dir_path( __FILE__ ) );
     
    238239        $reports_handler->init();
    239240
     241        add_action( 'init', array( $this, 'init_order_admin' ) );
     242    }
     243
     244    /**
     245     * Load plugin text domain for translation.
     246     */
     247    public function load_plugin_textdomain() {
    240248        // Localisation.
    241249        load_plugin_textdomain( 'woocommerce-gateway-gocardless', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
    242 
    243         add_action( 'init', array( $this, 'init_order_admin' ) );
    244250    }
    245251
Note: See TracChangeset for help on using the changeset viewer.