fix(fixtures): 修正 wppop_sections PHP 序列化长度前缀(审查发现);记录悬空图库引用为有意设计

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-10-20 17:30:25 +08:00
parent 681163be97
commit 2f1d594034
3 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -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:"<p>Tab</p>"`)
- **故意的悬空引用**:`_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
+1 -1
View File
@@ -36,7 +36,7 @@
<content:encoded><![CDATA[<p>Product body</p>]]></content:encoded>
<wp:postmeta><wp:meta_key><![CDATA[_thumbnail_id]]></wp:meta_key><wp:meta_value><![CDATA[202]]></wp:meta_value></wp:postmeta>
<wp:postmeta><wp:meta_key><![CDATA[_product_image_gallery]]></wp:meta_key><wp:meta_value><![CDATA[203,204]]></wp:meta_value></wp:postmeta>
<wp:postmeta><wp:meta_key><![CDATA[wppop_sections]]></wp:meta_key><wp:meta_value><![CDATA[a:1:{i:0;a:2:{s:5:"title";s:7:"SpecsTab";s:7:"content";s:12:"<p>Tab</p>";}}]]></wp:meta_value></wp:postmeta>
<wp:postmeta><wp:meta_key><![CDATA[wppop_sections]]></wp:meta_key><wp:meta_value><![CDATA[a:1:{i:0;a:2:{s:5:"title";s:8:"SpecsTab";s:7:"content";s:10:"<p>Tab</p>";}}]]></wp:meta_value></wp:postmeta>
</item>
<!-- 3 page -->
<item>