Skip to content

v1.3.0

Choose a tag to compare

@bloblems bloblems released this 21 Aug 18:34
· 6 commits to main since this release

Stock-lock hardening

Staff could detach synced products from inventory control by unchecking "manage stock", changing the backorder policy, or hand-setting the stock status in wp-admin (including quick edit and bulk edit). Only the stock quantity itself was protected. All of these are now reverted server-side for synced products when stock locking is enabled, and every revert is recorded in the sync activity log.

  • Enforce manage_stock, backorders, and stock status (unmanaged products) on every admin save, not just the stock number
  • Never force manage_stock on bundle-type parents (bundle, composite, woosb, mix-and-match) — their availability is computed from their children, and forcing it pinned kits out of stock
  • Stop rewriting manage_stock outside wp-admin (storefront reads are now untouched)
  • Add a standalone test suite: php tests/test-product-sync-enforcement.php

REST API behavior is unchanged: the inventory system retains full control of all fields.