Notas da versão 3.1.3: 8 melhorias 16 correções 1 reforço de segurança
Melhoria
- Rendered the cart block, rewards meter and announcement bar the same for every visitor and filled them from the Store API on load, so full page caches stay safe to share.
- Loaded the Pro stylesheet once, and the drawer scripts and subscription styles only where a Caddy element renders.
- Fetched recommendations only when enabled and the cart changes, limited tab-switch cart refreshes to once every 30 seconds, and set the cart count cookie only when the count changes.
- Recorded cart tracking once per cart change, processed abandoned carts in batches, and removed empty carts after a day (older carts with items are kept unless a retention period is set with caddy_cart_retention_days).
- Paged, indexed and cached the analytics, admin carts list and Customizer style queries.
- Keyed the recommendations cache by the matched workflow and kept it when only stock, sales or rating data changes.
- Declared the WooCommerce plugin dependency and cart and checkout blocks compatibility.
- Tested up to WooCommerce 11.3.0 and WordPress 7.1.
Correção
- Removed the wp_cache_flush call from the admin menu callback so admin page loads keep the persistent object cache.
- Removed workflow recommendation discounts when the triggering product leaves the cart and applied them to the item's current price.
- Updated quantities through the Store API cart/update-item route and applied the returned totals, so coupon discounts stay applied after quantity changes and removals.
- Converted coupon discounts with the store's currency minor unit and tax display setting, and showed recommendation and saved item prices with the tax display setting.
- Deferred cart adds until the page-load cart read settles, and kept WooCommerce's classic form handler out of Store API add requests.
- Completed the initial cart refresh on every page load, and initialized the drawer scripts when they load after DOMContentLoaded.
- Counted conversions once per paid order, including orders without a tracked cart, attributed them to a workflow only through that workflow's offer, and matched Caddy revenue to the total revenue order statuses.
- Compared cart timestamps in site time when marking carts abandoned.
- Updated the database tables to version 1.2 with dbDelta and added an admin notice with a retry in Caddy > Tools if the update fails.
- Allowed saving settings, the Tools tab and the selected cart icon with any license status; the license gates updates and support.
- Defaulted the "Powered by Caddy" link to off.
- Left queued WooCommerce notices in place when rendering the drawer.
- Kept a network-active Caddy free plugin active on multisite with a notice to deactivate it, and kept notification settings on reactivation.
- Translated the activation notices, saved amount label, rewards completion messages and Customizer headings.
- Removed workflow posts on uninstall when data removal is enabled, on every site in a multisite network.
- Removed unused code, including the core plugin checker class.
Segurança
- Hardened security for workflow discounts, reward coupons and free gifts, saved items, recommendations, workflow permissions and admin screens. Updating is strongly recommended.