From 2f1d5940345720796838baa1c01325a625e4d9eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Tue, 20 Oct 2026 17:30:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(fixtures):=20=E4=BF=AE=E6=AD=A3=20wppop=5Fs?= =?UTF-8?q?ections=20PHP=20=E5=BA=8F=E5=88=97=E5=8C=96=E9=95=BF=E5=BA=A6?= =?UTF-8?q?=E5=89=8D=E7=BC=80=EF=BC=88=E5=AE=A1=E6=9F=A5=E5=8F=91=E7=8E=B0?= =?UTF-8?q?=EF=BC=89=EF=BC=9B=E8=AE=B0=E5=BD=95=E6=82=AC=E7=A9=BA=E5=9B=BE?= =?UTF-8?q?=E5=BA=93=E5=BC=95=E7=94=A8=E4=B8=BA=E6=9C=89=E6=84=8F=E8=AE=BE?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Code --- .../superpowers/plans/2026-10-20-slice-foundation-phase0-1.md | 4 ++-- tests/fixtures/README.md | 3 ++- tests/fixtures/wxr/mini.xml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/superpowers/plans/2026-10-20-slice-foundation-phase0-1.md b/docs/superpowers/plans/2026-10-20-slice-foundation-phase0-1.md index 551538f..e72caea 100644 --- a/docs/superpowers/plans/2026-10-20-slice-foundation-phase0-1.md +++ b/docs/superpowers/plans/2026-10-20-slice-foundation-phase0-1.md @@ -105,7 +105,7 @@ git add docs/evidence/backup-record.md && git commit -m "chore(evidence): cms --- -### Task 0.3: 脱敏最小夹具 +### Task 0.3: 脱敏最小夹具 ✅ 完成(commit 681163b + 修正 ee58 待查,规格审查通过;审查发现并修复计划中 PHP 序列化长度前缀笔误 s:7→s:8、s:12→s:10;203/204 悬空图库引用为有意设计,已记入夹具 README) **Files:** - Create: `tests/fixtures/wxr/mini.xml` @@ -154,7 +154,7 @@ git add docs/evidence/backup-record.md && git commit -m "chore(evidence): cms Product body

]]>
- Tab

";}}]]>
+ Tab

";}}]]>
diff --git a/tests/fixtures/README.md b/tests/fixtures/README.md index 3574c4e..16c65b9 100644 --- a/tests/fixtures/README.md +++ b/tests/fixtures/README.md @@ -20,7 +20,8 @@ - `.html` 后缀 permalink 与目录式 permalink 混用 - Yoast SEO meta(`_yoast_wpseo_title`、`_yoast_wpseo_metadesc`) - 特色图(`_thumbnail_id`)与产品图库(`_product_image_gallery`) -- PHP serialized postmeta(`wppop_sections`) +- PHP serialized postmeta(`wppop_sections`,串内长度前缀为合法 PHP 序列化:`s:8:"SpecsTab"`、`s:10:"

Tab

"`) +- **故意的悬空引用**:`_product_image_gallery=203,204` 引用的附件 ID 在夹具中不存在(只有 201/202)——用于阶段 2 测试"图库引用缺失→报告不崩溃"路径 - `wp:term`(category / product_cat 两种 taxonomy) - attachment 条目(`wp:attachment_url`、`status=inherit`) - post / product(CPT) / page 多种 post_type diff --git a/tests/fixtures/wxr/mini.xml b/tests/fixtures/wxr/mini.xml index 16c9334..83b4e6c 100644 --- a/tests/fixtures/wxr/mini.xml +++ b/tests/fixtures/wxr/mini.xml @@ -36,7 +36,7 @@ Product body

]]>
- Tab

";}}]]>
+ Tab

";}}]]>