c87eefcada
- Version 0.1.1 for the hardening 2.0 changes that shipped without a version bump - CHANGELOG: Marketplace commission keys fix (hp_vendor / hp_commission_rate / hp_commission_fee) - Verify: composer test (10 OK)
1.7 KiB
1.7 KiB
Changelog
All notable changes to this AddOn will be documented here.
Format follows Keep a Changelog. Versioning follows Semantic Versioning.
[Unreleased]
[0.1.1] — 2026-09-26
Hardening 2.0 changes, released alongside 2meet-data-optimizer 1.1.0.
Fixed
- Commission tracking read
_hp_*keys that Marketplace never writes, so no commission was recorded. It now readshp_vendor/hp_commission_rate/hp_commission_feeand computes subtotal, vendor payout and commission the wayMarketplace::get_order_profit()does (honouringhp_vendor_include_taxes); stores the vendor's user ID, the product's parent listing and the platform commission percentage.
Added
- 三個 WC runtime usermeta 欄位進
user/hotgroup:wc_last_active、wc_order_count_<blog-prefix>、last_update。先前未註冊,這些高頻欄位 會落回wp_usermeta。 tests/integration/:bootstrap(複用核心的 integration bootstrap,連真實 MariaDB)+phpunit-integration.xml+ CI job,移植WCTermCountFilterTest(18 tests)。
Notes
-
wc_order_count走 WooCommerce 的Users::update_site_user_meta(),實際 key 是'wc_order_count' . '_' . rtrim( get_blog_prefix(), '_' )。來源外掛 寫死主站形式wc_order_count_wp,multisite 子站(_wp_2)會漏接;此處用 同一條運算式算出來。 -
Phase 3 implementation in progress.
[0.1.0] — TBD
Added (initial release, scaffold)
- Plugin scaffold from
wp-data-optimizer v2.16.0extraction plan. - Plugin Header + bootstrap stub + 7 MD + composer.json.
- Requires Plugins:
2meet-data-optimizer,woocommerce.