Plugin Directory

Changeset 3179107


Ignore:
Timestamp:
10/30/2024 09:02:11 PM (17 months ago)
Author:
breadintegrations
Message:

Version 3.5.7 changes

Location:
bread-finance/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bread-finance/trunk/README.md

    r3140085 r3179107  
    44Requires at least: 4.9
    55Tested up to: 6.1.1
    6 Stable tag: 3.5.6
     6Stable tag: 3.5.7
    77Requires PHP: 5.6
    88WC requires at least: 3.0
     
    7373== Changelog ==
    7474
     75= 3.5.7
     76* Current release
     77* Add HPOS compatibility
     78
    7579= 3.5.6
    76 * Current release
    7780* Rename source field so it doesn't interfere with other plugins
    7881* Update Bread placeholder
  • bread-finance/trunk/assets/js/v2/main.js

    r3140085 r3179107  
    11/**
    2  * Bread v3.5.6
     2 * Bread v3.5.7
    33 *
    44 * @author Maritim, Kiprotich
  • bread-finance/trunk/bread-finance.php

    r3140085 r3179107  
    66 * Author: Bread Financial
    77 * Author URI: https://payments.breadfinancial.com/
    8  * Version: 3.5.6
     8 * Version: 3.5.7
    99 * Text Domain: bread_finance
    1010 * Domain Path: /i18n/languages/
     
    206206           
    207207            //Require minimums and constants
    208             define('WC_' . $tenant . '_VERSION', '3.5.6');
     208            define('WC_' . $tenant . '_VERSION', '3.5.7');
    209209            define('WC_' . $tenant . '_MIN_PHP_VER', '5.6.0');
    210210            define('WC_' . $tenant . '_MIN_WC_VER', '3.4.0');
     
    282282});
    283283
     284// Declare HOPS compatibility
     285add_action( 'before_woocommerce_init', function() {
     286    if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
     287        \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
     288    }
     289} );
     290
    284291$instance_name = 'wc_' . $bread_config->get('gateway_id');
    285292
  • bread-finance/trunk/classes/class-bread-finance-gateway.php

    r3140085 r3179107  
    19601960            $order->update_status('on-hold');
    19611961            $this->updateOrderTxStatus($order, $authorized_tx);
     1962            $order->update_meta_data( '_payment_method', $this->bread_config->get('gateway_id')); // Ensure Bread is selected payment method
    19621963            $order->save();
    19631964
    1964             update_post_meta($order_id, '_payment_method', $this->bread_config->get('gateway_id')); // Ensure Bread is selected payment method
    19651965            if ($this->is_auto_settle()) {
    19661966                $order->update_status('processing');
Note: See TracChangeset for help on using the changeset viewer.