Changeset 3389552
- Timestamp:
- 11/04/2025 10:15:37 AM (3 months ago)
- Location:
- woo-mailerlite/trunk
- Files:
-
- 8 edited
-
admin/controllers/WooMailerLiteAdminSettingsController.php (modified) (1 diff)
-
admin/controllers/WooMailerLiteAdminWizardController.php (modified) (1 diff)
-
includes/common/traits/WooMailerLiteResources.php (modified) (1 diff)
-
includes/controllers/WooMailerLiteController.php (modified) (1 diff)
-
includes/controllers/WooMailerLiteOrderController.php (modified) (2 diffs)
-
includes/jobs/WooMailerLiteCustomerSyncJob.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
woo-mailerlite.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-mailerlite/trunk/admin/controllers/WooMailerLiteAdminSettingsController.php
r3377455 r3389552 223 223 } 224 224 } 225 return $this->response($response, $response->status, 'Settings saved successfully.'); 225 $message = 'Settings saved successfully.'; 226 if (!$response->success) { 227 $message = $response->message ?? 'Unable to set up the shop. Please try again.'; 228 } 229 return $this->response($response, $response->status, $message); 226 230 } 227 231 -
woo-mailerlite/trunk/admin/controllers/WooMailerLiteAdminWizardController.php
r3377455 r3389552 163 163 WooMailerLiteProductSyncJob::dispatch(); 164 164 } 165 return $this->response($response, $response->status); 165 $message = ''; 166 if (!$response->success) { 167 $message = $response->message ?? 'Unable to set up the shop. Please try again.'; 168 } 169 return $this->response($response, $response->status, $message); 166 170 } 167 171 -
woo-mailerlite/trunk/includes/common/traits/WooMailerLiteResources.php
r3377455 r3389552 322 322 public function customTableEnabled() 323 323 { 324 // temporarily because it works 325 return true; 324 326 if ($this->model->isResource) { 325 327 return false; -
woo-mailerlite/trunk/includes/controllers/WooMailerLiteController.php
r3377455 r3389552 62 62 if (in_array('sometimes', $validation)) { 63 63 $skipSometimes = $key; 64 if (isset($this->request[$key]) && empty($this->request[$key])) {64 if (isset($this->request[$key]) && !empty($this->request[$key])) { 65 65 $this->validated[$key] = $this->request[$key]; 66 66 } -
woo-mailerlite/trunk/includes/controllers/WooMailerLiteOrderController.php
r3377455 r3389552 68 68 $customerFields = array_intersect_key($filteredCustomerData, array_flip($syncFields)); 69 69 $subscribe = false; 70 $email = $customer->email ?? $order->get_billing_email(); 71 $subscribeCacheKey = 'woo_ml_subscribe_checkbox:'.$email; 70 72 if ($cart && isset($cart->subscribe)) { 71 73 $subscribe = $cart->subscribe; … … 74 76 $subscribe = true; 75 77 } 78 79 if (WooMailerLiteCache::get($subscribeCacheKey) === null) { 80 WooMailerLiteCache::set($subscribeCacheKey, $subscribe, 20); 81 } 82 83 if (WooMailerLiteCache::get($subscribeCacheKey) === true) { 84 $subscribe = true; 85 } 86 76 87 $orderCustomer = [ 77 88 'email' => $customer->email ?? $order->get_billing_email(), -
woo-mailerlite/trunk/includes/jobs/WooMailerLiteCustomerSyncJob.php
r3377455 r3389552 51 51 } 52 52 53 if ($processed && (WooMailerLiteCustomer::getAll() < $countInCache)) {53 if ($processed && (WooMailerLiteCustomer::getAll()->count() < $countInCache)) { 54 54 self::dispatch($data); 55 55 } -
woo-mailerlite/trunk/readme.txt
r3377455 r3389552 6 6 Tested up to: 6.8.2 7 7 Requires PHP: 7.2.5 8 Stable tag: 3.1. 08 Stable tag: 3.1.1 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.1 (4th November 2025) = 87 * Bug fixes and performance improvements 86 88 87 89 = 3.1.0 (13th October 2025) = -
woo-mailerlite/trunk/woo-mailerlite.php
r3377455 r3389552 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. 018 * Version: 3.1.1 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. 0' );42 define( 'WOO_MAILERLITE_VERSION', '3.1.1' ); 43 43 44 44 define('WOO_MAILERLITE_ASYNC_JOBS', false);
Note: See TracChangeset
for help on using the changeset viewer.