Plugin Directory

Changeset 3439036


Ignore:
Timestamp:
01/13/2026 10:34:43 PM (2 months ago)
Author:
berrypress
Message:

Update to version 1.2.3 from GitHub

Location:
live-carts-for-woocommerce
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • live-carts-for-woocommerce/tags/1.2.3/includes/setup.php

    r3435270 r3439036  
    9393                   
    9494                    // Step 3: Migrate existing data
     95
     96                    for ($offset = 0; ; $offset += 250) {
     97                       
    9598                    // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
    9699                    $existingContents = $wpdb->get_results(
    97                         'SELECT contents_id, cart_id, contents FROM '.$wpdb->prefix.'phplugins_cart_contents',
     100                        $wpdb->prepare('SELECT contents_id, cart_id, contents FROM '.$wpdb->prefix.'phplugins_cart_contents ORDER BY contents_id ASC LIMIT %d,250', $offset),
    98101                        ARRAY_A
    99102                    );
     103
     104                    if (!$existingContents) {
     105                        break;
     106                    }
    100107                   
    101108                    foreach ($existingContents as $row) {
     
    131138                            }
    132139                        }
     140                    }
     141
     142                    $wpdb->flush();
     143
    133144                    }
    134145                   
  • live-carts-for-woocommerce/tags/1.2.3/live-carts-for-woocommerce.php

    r3435270 r3439036  
    22/*
    33 * Plugin Name:       Live Carts for WooCommerce: Track Real-Time, Abandoned, and Converted Carts!
    4  * Version:           1.2.2
     4 * Version:           1.2.3
    55 * Description:       Monitor your customers' current and past WooCommerce shopping carts via the WordPress admin.
    66 * Author:            BerryPress
     
    2323
    2424class LiveCarts {
    25     const VERSION = '1.2.2', CART_ABANDON_TIME = 7200, CART_ARCHIVE_DAYS = 30, ADMIN_CAPABILITY = 'manage_woocommerce';
     25    const VERSION = '1.2.3', CART_ABANDON_TIME = 7200, CART_ARCHIVE_DAYS = 30, ADMIN_CAPABILITY = 'manage_woocommerce';
    2626
    2727    private $currentCart, $currentCartId;
  • live-carts-for-woocommerce/tags/1.2.3/readme.txt

    r3435270 r3439036  
    77WC requires at least: 7.0
    88WC tested up to: 10.4
    9 Stable tag: 1.2.2
     9Stable tag: 1.2.3
    1010License: GNU General Public License version 3 or later
    1111License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    8383
    8484== Changelog ==
     85
     86= 1.2.3 2025-01-13 =
     87- Fix migration for large tables
    8588
    8689= 1.2.2 2025-01-08 =
  • live-carts-for-woocommerce/trunk/includes/setup.php

    r3435270 r3439036  
    9393                   
    9494                    // Step 3: Migrate existing data
     95
     96                    for ($offset = 0; ; $offset += 250) {
     97                       
    9598                    // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
    9699                    $existingContents = $wpdb->get_results(
    97                         'SELECT contents_id, cart_id, contents FROM '.$wpdb->prefix.'phplugins_cart_contents',
     100                        $wpdb->prepare('SELECT contents_id, cart_id, contents FROM '.$wpdb->prefix.'phplugins_cart_contents ORDER BY contents_id ASC LIMIT %d,250', $offset),
    98101                        ARRAY_A
    99102                    );
     103
     104                    if (!$existingContents) {
     105                        break;
     106                    }
    100107                   
    101108                    foreach ($existingContents as $row) {
     
    131138                            }
    132139                        }
     140                    }
     141
     142                    $wpdb->flush();
     143
    133144                    }
    134145                   
  • live-carts-for-woocommerce/trunk/live-carts-for-woocommerce.php

    r3435270 r3439036  
    22/*
    33 * Plugin Name:       Live Carts for WooCommerce: Track Real-Time, Abandoned, and Converted Carts!
    4  * Version:           1.2.2
     4 * Version:           1.2.3
    55 * Description:       Monitor your customers' current and past WooCommerce shopping carts via the WordPress admin.
    66 * Author:            BerryPress
     
    2323
    2424class LiveCarts {
    25     const VERSION = '1.2.2', CART_ABANDON_TIME = 7200, CART_ARCHIVE_DAYS = 30, ADMIN_CAPABILITY = 'manage_woocommerce';
     25    const VERSION = '1.2.3', CART_ABANDON_TIME = 7200, CART_ARCHIVE_DAYS = 30, ADMIN_CAPABILITY = 'manage_woocommerce';
    2626
    2727    private $currentCart, $currentCartId;
  • live-carts-for-woocommerce/trunk/readme.txt

    r3435270 r3439036  
    77WC requires at least: 7.0
    88WC tested up to: 10.4
    9 Stable tag: 1.2.2
     9Stable tag: 1.2.3
    1010License: GNU General Public License version 3 or later
    1111License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    8383
    8484== Changelog ==
     85
     86= 1.2.3 2025-01-13 =
     87- Fix migration for large tables
    8588
    8689= 1.2.2 2025-01-08 =
Note: See TracChangeset for help on using the changeset viewer.