Plugin Directory

Changeset 3027202


Ignore:
Timestamp:
01/26/2024 05:31:59 AM (2 years ago)
Author:
breadintegrations
Message:

fix duplicate placements on PDP

Location:
bread-finance/trunk
Files:
4 edited

Legend:

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

    r2997246 r3027202  
    44Requires at least: 4.9
    55Tested up to: 6.1.1
    6 Stable tag: 3.4.2
     6Stable tag: 3.4.3
    77Requires PHP: 5.6
    88WC requires at least: 3.0
     
    7272
    7373== Changelog ==
     74= 3.4.3
     75* Current release
     76* Fix duplicate placements on PDP
     77
    7478= 3.4.2
    75 * Current release
    7679* Fix issue with placement not showing in PDP if "Redirect to the cart" is enabled
    7780
  • bread-finance/trunk/bread-finance.php

    r2997246 r3027202  
    44 * Plugin Name: Bread Pay
    55 * Description: Adds the Bread Pay Gateway to your WooCommerce site.
    6  * Author: Bread Financial
     6 * Author: Bread Pay
    77 * Author URI: https://payments.breadfinancial.com/
    8  * Version: 3.4.2
    9  * Text Domain: bread_finance
     8 * Version: 3.4.3
     9 * Text Domain: bread-finance
    1010 * Domain Path: /i18n/languages/
    1111 * WC requires at least: 3.0.0
     
    206206           
    207207            //Require minimums and constants
    208             define('WC_' . $tenant . '_VERSION', '3.4.2');
     208            define('WC_' . $tenant . '_VERSION', '3.4.3');
    209209            define('WC_' . $tenant . '_MIN_PHP_VER', '5.6.0');
    210210            define('WC_' . $tenant . '_MIN_WC_VER', '3.4.0');
  • bread-finance/trunk/classes/class-bread-finance-button.php

    r2995512 r3027202  
    5959            $this->tenant_prefix = $this->bread_config->get('tenant_prefix');
    6060        }
     61        add_action('wp',array($this, 'add_template_hooks'));
    6162    }
    6263   
     
    260261
    261262}
     263
     264Bread_Finance_Button::instance();
  • bread-finance/trunk/classes/class-bread-finance-gateway.php

    r2997246 r3027202  
    7575
    7676            add_action('wp_enqueue_scripts', array($this, 'enqueue_scripts'));
    77             add_action('wp_enqueue_scripts', array($this, 'init_bread_button'));
    78             add_action('wp_enqueue_scripts', array($this, 'init_ajax_events'));
    7977
    8078            add_action('woocommerce_checkout_update_order_review', array($this, 'handle_checkout_update_order_review'));
     
    103101
    104102            add_filter( 'query_vars', array($this, 'custom_bread_vars'));
    105             //add_filter('all_plugins', array($this, 'update_plugin_meta'));
    106103
    107104            $this->sp_decline_message = <<<EOD
     
    117114        }
    118115
    119         public function init_bread_button() {
    120             if ($this->bread_finance_utilities->tenant_currency_equals_woocommerce_currency()) {
    121                 $bread_finance_button = Bread_Finance_Button::instance();
    122                 $bread_finance_button->add_template_hooks();
    123             }
    124         }
    125 
    126         public function init_ajax_events() {
    127             $bread_finance_ajax = Bread_Finance_Ajax::instance();
    128         }
    129116
    130117        public function handle_checkout_update_order_review() {
     
    24082395        }
    24092396
    2410         public function update_plugin_meta( $all_plugins ) {
    2411             foreach ( $all_plugins as $plugin_file => &$plugin_data ) {
    2412                 if ( 'Bread Pay' === $plugin_data['Name'] ) {
    2413                     $plugin_data['Name'] = $this->bread_config->get('tenant_name');
    2414                     $plugin_data['Description'] = PLUGIN_DESCRIPTION;
    2415                     $plugin_data['Author'] = PLUGIN_AUTHOR;
    2416                     $plugin_data['Text Domain'] = $this->bread_config->get('text_domain');
    2417                 }
    2418             }
    2419        
    2420             return $all_plugins;
    2421         }
    2422 
    24232397    }
    24242398   
Note: See TracChangeset for help on using the changeset viewer.