Releases: Defense-Distributed/dd-inventory
Release list
v1.3.1
Update-checker authentication + stock display fix
Fixes the 403 update errors
Update checks hit the GitHub API unauthenticated, sharing a 60-requests/hour per-IP limit that hosting providers routinely exhaust — every check then fails with 403 puc-github-http-error even though the repository is public.
Update checks can now authenticate:
- Set the GitHub Access Token field in WooCommerce → DD Inventory settings, or
- define
DDI_GITHUB_TOKENinwp-config.php(takes precedence).
Use a fine-grained token with read-only access to public repositories. Authenticated checks get 5,000 requests/hour attributed to the token instead of the server IP.
Note: this release must be installed manually once (the broken checker can't deliver its own fix). Download the source zip and upload via Plugins → Add New → Upload Plugin.
Stock display fix
- wp-admin no longer displays "manage stock" as on for products the inventory system deliberately set to unmanaged ("always available"). Reads now report the stored value; protection happens at save time.
- The locked manage-stock checkbox is no longer
disabled(a disabled checkbox is omitted from the form POST, which silently turned stock management off on every admin save). It now blocks interaction while still submitting its real value.
v1.2.3
v1.2.2
v1.3.0
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.