Changeset 3399626
- Timestamp:
- 11/20/2025 10:51:08 AM (4 months ago)
- Location:
- woo-mailerlite/trunk
- Files:
-
- 5 edited
-
includes/WooMailerLiteService.php (modified) (2 diffs)
-
includes/controllers/WooMailerLiteOrderController.php (modified) (1 diff)
-
includes/controllers/WooMailerLitePluginController.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
woo-mailerlite.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-mailerlite/trunk/includes/WooMailerLiteService.php
r3398682 r3399626 125 125 ]; 126 126 127 if (isset($checkoutData['language'])) {128 $orderCustomer['subscriber_fields'] = [129 'subscriber_language' => $checkoutData['language'],130 ];131 }132 133 127 134 128 if (isset($checkoutData['subscriber_fields'])) { … … 152 146 ); 153 147 148 if (isset($checkoutData['language'])) { 149 $orderCustomer['subscriber_fields']['subscriber_language'] = $checkoutData['language']; 150 $orderCustomer['subscriber_fields']['language'] = $checkoutData['language']; 151 } 154 152 155 153 $orderCart = [ -
woo-mailerlite/trunk/includes/controllers/WooMailerLiteOrderController.php
r3398682 r3399626 76 76 $subscribe = $cart->subscribe; 77 77 } 78 if (WooMailerLiteOptions::get("settings.checkoutHidden") ) {78 if (WooMailerLiteOptions::get("settings.checkoutHidden") || $order->get_meta('_woo_ml_subscribe')) { 79 79 $subscribe = true; 80 80 } -
woo-mailerlite/trunk/includes/controllers/WooMailerLitePluginController.php
r3377455 r3399626 74 74 public function reloadCheckout() 75 75 { 76 if (!function_exists('WC') || !is_object(WC()->session)) { 77 return false; 76 try { 77 if (!function_exists('WC') || !is_object(WC()->session)) { 78 return false; 79 } 80 if ($this->requestHas('ml_checkout')) { 81 $raw = intval($this->request['ml_checkout']); 82 $escaped = db()->esc_like($raw); 83 $escaped = '%checkout_id":' . addcslashes($escaped, '%_') . '%'; 84 $cart = WooMailerLiteCart::where('data', 'like', $escaped)->first(); 85 if ($cart && $cart->exists()) { 86 $cartData = $cart->data; 87 unset($cartData['checkout_id']); 88 WC()->session->set('cart', $cartData); 89 } 90 } 91 } catch (Throwable $e) { 92 WooMailerLiteLog()->error('Error restoring cart from checkout ID: ' . $e->getMessage()); 78 93 } 79 if ($this->requestHas('ml_checkout')) { 80 $cart = WooMailerLiteCart::where('data', 'like', '%'.$this->request['ml_checkout'].'%')->first(); 81 if ($cart && $cart->exists()) { 82 WC()->session->set('cart', $cart->data); 83 } 84 } 94 return true; 85 95 } 86 96 } -
woo-mailerlite/trunk/readme.txt
r3398682 r3399626 6 6 Tested up to: 6.8.2 7 7 Requires PHP: 7.2.5 8 Stable tag: 3.1. 28 Stable tag: 3.1.3 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 84 84 85 85 == Changelog == 86 = 3.1.3 (20th November 2025) = 87 * Security improvements 88 86 89 = 3.1.2 (19th November 2025) = 87 90 * Bug fixes and performance improvements -
woo-mailerlite/trunk/woo-mailerlite.php
r3398682 r3399626 16 16 * Plugin URI: https://wordpress.org/plugins/woo-mailerlite/ 17 17 * Description: Official MailerLite integration for WooCommerce. Track sales and campaign ROI, import products details, automate emails based on purchases and seamlessly add your customers to your email marketing lists via WooCommerce's checkout process. 18 * Version: 3.1. 218 * Version: 3.1.3 19 19 * Author: MailerLite 20 20 * Author URI: https://mailerlite.com … … 40 40 * Update when you release new versions. 41 41 */ 42 define( 'WOO_MAILERLITE_VERSION', '3.1. 2' );42 define( 'WOO_MAILERLITE_VERSION', '3.1.3' ); 43 43 44 44 define('WOO_MAILERLITE_ASYNC_JOBS', false);
Note: See TracChangeset
for help on using the changeset viewer.