Plugin Directory

Changeset 3389552


Ignore:
Timestamp:
11/04/2025 10:15:37 AM (3 months ago)
Author:
mailerlite
Message:

updated to 3.1.1

Location:
woo-mailerlite/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • woo-mailerlite/trunk/admin/controllers/WooMailerLiteAdminSettingsController.php

    r3377455 r3389552  
    223223            }
    224224        }
    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);
    226230    }
    227231
  • woo-mailerlite/trunk/admin/controllers/WooMailerLiteAdminWizardController.php

    r3377455 r3389552  
    163163            WooMailerLiteProductSyncJob::dispatch();
    164164        }
    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);
    166170    }
    167171
  • woo-mailerlite/trunk/includes/common/traits/WooMailerLiteResources.php

    r3377455 r3389552  
    322322    public function customTableEnabled()
    323323    {
     324        // temporarily because it works
     325        return true;
    324326        if ($this->model->isResource) {
    325327            return false;
  • woo-mailerlite/trunk/includes/controllers/WooMailerLiteController.php

    r3377455 r3389552  
    6262                        if (in_array('sometimes', $validation)) {
    6363                            $skipSometimes = $key;
    64                             if (isset($this->request[$key]) && empty($this->request[$key])) {
     64                            if (isset($this->request[$key]) && !empty($this->request[$key])) {
    6565                                $this->validated[$key] = $this->request[$key];
    6666                            }
  • woo-mailerlite/trunk/includes/controllers/WooMailerLiteOrderController.php

    r3377455 r3389552  
    6868            $customerFields = array_intersect_key($filteredCustomerData, array_flip($syncFields));
    6969            $subscribe = false;
     70            $email = $customer->email ?? $order->get_billing_email();
     71            $subscribeCacheKey = 'woo_ml_subscribe_checkbox:'.$email;
    7072            if ($cart && isset($cart->subscribe)) {
    7173                $subscribe = $cart->subscribe;
     
    7476                $subscribe = true;
    7577            }
     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           
    7687            $orderCustomer = [
    7788                'email' => $customer->email ?? $order->get_billing_email(),
  • woo-mailerlite/trunk/includes/jobs/WooMailerLiteCustomerSyncJob.php

    r3377455 r3389552  
    5151            }
    5252
    53             if ($processed && (WooMailerLiteCustomer::getAll() < $countInCache)) {
     53            if ($processed && (WooMailerLiteCustomer::getAll()->count() < $countInCache)) {
    5454                self::dispatch($data);
    5555            }
  • woo-mailerlite/trunk/readme.txt

    r3377455 r3389552  
    66Tested up to: 6.8.2
    77Requires PHP: 7.2.5
    8 Stable tag: 3.1.0
     8Stable tag: 3.1.1
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    8484
    8585== Changelog ==
     86= 3.1.1 (4th November 2025) =
     87* Bug fixes and performance improvements
    8688
    8789= 3.1.0 (13th October 2025) =
  • woo-mailerlite/trunk/woo-mailerlite.php

    r3377455 r3389552  
    1616 * Plugin URI:        https://wordpress.org/plugins/woo-mailerlite/
    1717 * 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.0
     18 * Version:           3.1.1
    1919 * Author:            MailerLite
    2020 * Author URI:        https://mailerlite.com
     
    4040 * Update when you release new versions.
    4141 */
    42 define( 'WOO_MAILERLITE_VERSION', '3.1.0' );
     42define( 'WOO_MAILERLITE_VERSION', '3.1.1' );
    4343
    4444define('WOO_MAILERLITE_ASYNC_JOBS', false);
Note: See TracChangeset for help on using the changeset viewer.