Changeset 3439036
- Timestamp:
- 01/13/2026 10:34:43 PM (2 months ago)
- Location:
- live-carts-for-woocommerce
- Files:
-
- 6 edited
- 1 copied
-
tags/1.2.3 (copied) (copied from live-carts-for-woocommerce/trunk)
-
tags/1.2.3/includes/setup.php (modified) (2 diffs)
-
tags/1.2.3/live-carts-for-woocommerce.php (modified) (2 diffs)
-
tags/1.2.3/readme.txt (modified) (2 diffs)
-
trunk/includes/setup.php (modified) (2 diffs)
-
trunk/live-carts-for-woocommerce.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
live-carts-for-woocommerce/tags/1.2.3/includes/setup.php
r3435270 r3439036 93 93 94 94 // Step 3: Migrate existing data 95 96 for ($offset = 0; ; $offset += 250) { 97 95 98 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching 96 99 $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), 98 101 ARRAY_A 99 102 ); 103 104 if (!$existingContents) { 105 break; 106 } 100 107 101 108 foreach ($existingContents as $row) { … … 131 138 } 132 139 } 140 } 141 142 $wpdb->flush(); 143 133 144 } 134 145 -
live-carts-for-woocommerce/tags/1.2.3/live-carts-for-woocommerce.php
r3435270 r3439036 2 2 /* 3 3 * Plugin Name: Live Carts for WooCommerce: Track Real-Time, Abandoned, and Converted Carts! 4 * Version: 1.2. 24 * Version: 1.2.3 5 5 * Description: Monitor your customers' current and past WooCommerce shopping carts via the WordPress admin. 6 6 * Author: BerryPress … … 23 23 24 24 class 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'; 26 26 27 27 private $currentCart, $currentCartId; -
live-carts-for-woocommerce/tags/1.2.3/readme.txt
r3435270 r3439036 7 7 WC requires at least: 7.0 8 8 WC tested up to: 10.4 9 Stable tag: 1.2. 29 Stable tag: 1.2.3 10 10 License: GNU General Public License version 3 or later 11 11 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 83 83 84 84 == Changelog == 85 86 = 1.2.3 2025-01-13 = 87 - Fix migration for large tables 85 88 86 89 = 1.2.2 2025-01-08 = -
live-carts-for-woocommerce/trunk/includes/setup.php
r3435270 r3439036 93 93 94 94 // Step 3: Migrate existing data 95 96 for ($offset = 0; ; $offset += 250) { 97 95 98 // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching 96 99 $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), 98 101 ARRAY_A 99 102 ); 103 104 if (!$existingContents) { 105 break; 106 } 100 107 101 108 foreach ($existingContents as $row) { … … 131 138 } 132 139 } 140 } 141 142 $wpdb->flush(); 143 133 144 } 134 145 -
live-carts-for-woocommerce/trunk/live-carts-for-woocommerce.php
r3435270 r3439036 2 2 /* 3 3 * Plugin Name: Live Carts for WooCommerce: Track Real-Time, Abandoned, and Converted Carts! 4 * Version: 1.2. 24 * Version: 1.2.3 5 5 * Description: Monitor your customers' current and past WooCommerce shopping carts via the WordPress admin. 6 6 * Author: BerryPress … … 23 23 24 24 class 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'; 26 26 27 27 private $currentCart, $currentCartId; -
live-carts-for-woocommerce/trunk/readme.txt
r3435270 r3439036 7 7 WC requires at least: 7.0 8 8 WC tested up to: 10.4 9 Stable tag: 1.2. 29 Stable tag: 1.2.3 10 10 License: GNU General Public License version 3 or later 11 11 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 83 83 84 84 == Changelog == 85 86 = 1.2.3 2025-01-13 = 87 - Fix migration for large tables 85 88 86 89 = 1.2.2 2025-01-08 =
Note: See TracChangeset
for help on using the changeset viewer.