Add images to your Article Schema throws fatal error
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- wordpress
调研方向
从 issue 中链接的“Add images to your Article Schema”示例开始,使用报告的 filter、attachment ID 和 Article schema 设置重现该示例。检查该示例为何引用 WPSEO_Schema_Image,然后更新文档中的示例,使其不再产生报告的 fatal error,并验证生成页面的源代码。
由索引模型根据 Issue 内容生成。
描述
Please give us a description of the issue
When I use the filter wpseo_schema_article and use the example code provided here, I see fatal error.
Steps to replicate:
- I used the code snippet plugin to add the example code.
- Changed the value of $attachment_id in the example. I added an image and used the ID for that image
- Then I saved the code and activated it.
- I checked a post where I set schema type as webpage and page type as article. I noticed fatal error in the page source that says: WPSEO_Schema_Image is not found.
Screenshot:
- I've read and understood the contribution guidelines.
- I've searched for any related issues and avoided creating a duplicate issue.
- 主要语言
- JavaScript
- 星标
- 15
- 派生
- 23
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Yoast/developer 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 78/100
-
难度 5/5 一周以上 新手友好度 25/100
-
Typos未关闭
难度 2/5 1-3 小时 新手友好度 48/100
-
bug
难度 3/5 1-2 天 新手友好度 55/100
-
难度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
factory-active factory-automatic task-bug-reproduction-success task-identify-harness-labels-done task-identify-issue-type-done
难度 2/5 1-3 小时 新手友好度 90/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
status: waiting triage
难度 2/5 1-3 小时 新手友好度 84/100
freeCodeCamp/freeCodeCamp#70412 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
rohitg00/ai-engineering-from-scratch#490 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 6 天内回复