chore(wc): 同步 A v3.4.6 的 WooCommerce 整合 + TablePrefix header(F4/F5)
4 個整合檔(woocommerce / wc-orders-interceptor / wc-term-count-filter / admin-wc)對齊 A v3.4.6;主檔補 TablePrefix header。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TbG1keQQ7XBa7qMQY16KCY
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*
|
||||
* Reads from order via `wc_get_order()` — works for both HPOS and legacy.
|
||||
*
|
||||
* @package WP_Data_Optimizer
|
||||
* @package TMDO
|
||||
* @since 1.0.0 (legacy hpct_wc_orders write path)
|
||||
* @since 2.1.0 (wp_wpdo_wc_commissions custom table; HPOS-aware)
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
// phpcs:ignore WPDO.AntiEAV -- platform integration with WooCommerce: term count cache transform
|
||||
/**
|
||||
* TMDO_WC_Term_Count_Filter — Reroute WooCommerce term count cache from
|
||||
* wp_termmeta to wp_options (v2.12.3 Phase 3).
|
||||
@@ -33,10 +32,12 @@
|
||||
* 🔒 Lessons applied (v2.11.7): added to TMDO_Hook_Bus_Bridge::COEXIST_WHITELIST
|
||||
* so `wp wpdo conflict-scan` does not report a false positive.
|
||||
*
|
||||
* @package WP_Data_Optimizer
|
||||
* @package TMDO
|
||||
* @since 2.12.3
|
||||
*/
|
||||
|
||||
// phpcs:ignore WPDO.AntiEAV -- platform integration with WooCommerce: term count cache transform
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* This is "Tier 5" in ENTITY_ADAPTER_COOKBOOK.md: integrating with a plugin
|
||||
* that has its own anti-EAV solution.
|
||||
*
|
||||
* @package WP_Data_Optimizer
|
||||
* @package TMDO
|
||||
* @since 2.1.0
|
||||
*/
|
||||
|
||||
@@ -240,7 +240,7 @@ final class TMDO_WooCommerce {
|
||||
<?php
|
||||
printf(
|
||||
/* translators: 1: legacy order count, 2: HPOS settings URL, 3: dismiss URL */
|
||||
esc_html__( '偵測到 %1$d 筆 legacy shop_order(postmeta-based)。建議啟用 WooCommerce High Performance Order Storage (HPOS) 加速 order 查詢。前往 %2$s 啟用,或 %3$s 永久隱藏此通知。', 'tmdo-woocommerce' ),
|
||||
esc_html__( '偵測到 %1$d 筆 legacy shop_order(postmeta-based)。建議啟用 WooCommerce High Performance Order Storage (HPOS) 加速 order 查詢。前往 %2$s 啟用,或 %3$s 永久隱藏此通知。', '2meet-data-optimizer' ),
|
||||
(int) $legacy_count,
|
||||
'<a href="' . esc_url( $settings_url ) . '">WooCommerce → 進階 → 功能</a>',
|
||||
'<a href="' . esc_url( $dismiss_url ) . '">關閉</a>'
|
||||
|
||||
Reference in New Issue
Block a user