Template listeners targeting shared templates are semi broken
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Read the issue’s description of template listeners, shared templates, and runtime embedding to understand the inconsistent behavior. The issue gives no files or tests to start from, so first locate the listener and template compilation entry points. Done would mean shared templates behave consistently across frontend and backend; the issue leaves the solution unresolved and suggests stricter rules in v7.
由索引模型根据 Issue 内容生成。
描述
Template listeners come with a fixed environment to target either the frontend or backend. This is a necessary step to address templates that may exist in both environments under the same name but must be targeted individually.
The problem are shared templates that exist in both environments simultaneously. As soon as these templates are embedded on runtime instead of being a static include, things start to break apart. Depending on the environment that triggered the template compilation different template listeners are being run, yielding inconsistent results.
A possible solution is the introduction of a third type of environment shared that is only valid for shared templates and at the same time is the only valid type for these kind of templates. However, this is kind of obscure and cannot be enforced in a backwards compatible fashion, making this complicated to fix. Implicitly applying template listeners on shared templates to both environments has surprising effects too.
The most likely solution is to address this in v7 by enforcing stricter rules on shared templates and for the time being accept that this is subtly broken.
- 主要语言
- PHP
- 星标
- 248
- 派生
- 147
- 平均合并
- 17 分钟
- 30 天内合并 PR
- 21
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
WoltLab/WCF 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 58/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 30/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 20/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
WoltLab/WCF#6771 · 1 个 reaction ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
HE-Arc/le-panier-du-coin#49 ·
维护者通常 1 天内回复
-
15.0
难度 2/5 1-3 小时 新手友好度 65/100
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
LinkNacional/woo-rede#367 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Lazyload SVG placeholder runs uncached attachment lookups with JSON-escaped URLs on REST responses未关闭customer report
难度 2/5 1-3 小时 新手友好度 72/100
Codeinwp/optimole-wp#1253 ·
维护者通常 1 天内回复