Changeset 3027202
- Timestamp:
- 01/26/2024 05:31:59 AM (2 years ago)
- Location:
- bread-finance/trunk
- Files:
-
- 4 edited
-
README.md (modified) (2 diffs)
-
bread-finance.php (modified) (2 diffs)
-
classes/class-bread-finance-button.php (modified) (2 diffs)
-
classes/class-bread-finance-gateway.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bread-finance/trunk/README.md
r2997246 r3027202 4 4 Requires at least: 4.9 5 5 Tested up to: 6.1.1 6 Stable tag: 3.4. 26 Stable tag: 3.4.3 7 7 Requires PHP: 5.6 8 8 WC requires at least: 3.0 … … 72 72 73 73 == Changelog == 74 = 3.4.3 75 * Current release 76 * Fix duplicate placements on PDP 77 74 78 = 3.4.2 75 * Current release76 79 * Fix issue with placement not showing in PDP if "Redirect to the cart" is enabled 77 80 -
bread-finance/trunk/bread-finance.php
r2997246 r3027202 4 4 * Plugin Name: Bread Pay 5 5 * Description: Adds the Bread Pay Gateway to your WooCommerce site. 6 * Author: Bread Financial6 * Author: Bread Pay 7 7 * Author URI: https://payments.breadfinancial.com/ 8 * Version: 3.4. 29 * Text Domain: bread _finance8 * Version: 3.4.3 9 * Text Domain: bread-finance 10 10 * Domain Path: /i18n/languages/ 11 11 * WC requires at least: 3.0.0 … … 206 206 207 207 //Require minimums and constants 208 define('WC_' . $tenant . '_VERSION', '3.4. 2');208 define('WC_' . $tenant . '_VERSION', '3.4.3'); 209 209 define('WC_' . $tenant . '_MIN_PHP_VER', '5.6.0'); 210 210 define('WC_' . $tenant . '_MIN_WC_VER', '3.4.0'); -
bread-finance/trunk/classes/class-bread-finance-button.php
r2995512 r3027202 59 59 $this->tenant_prefix = $this->bread_config->get('tenant_prefix'); 60 60 } 61 add_action('wp',array($this, 'add_template_hooks')); 61 62 } 62 63 … … 260 261 261 262 } 263 264 Bread_Finance_Button::instance(); -
bread-finance/trunk/classes/class-bread-finance-gateway.php
r2997246 r3027202 75 75 76 76 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'));79 77 80 78 add_action('woocommerce_checkout_update_order_review', array($this, 'handle_checkout_update_order_review')); … … 103 101 104 102 add_filter( 'query_vars', array($this, 'custom_bread_vars')); 105 //add_filter('all_plugins', array($this, 'update_plugin_meta'));106 103 107 104 $this->sp_decline_message = <<<EOD … … 117 114 } 118 115 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 }129 116 130 117 public function handle_checkout_update_order_review() { … … 2408 2395 } 2409 2396 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 2423 2397 } 2424 2398
Note: See TracChangeset
for help on using the changeset viewer.