Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Exclude Optimole URLs from Schema Images

未关闭
#854 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
php
领域
web-dev

调研方向

未指定文件、测试或入口点。首先追踪 Optimole 在哪里重写图像 URL,以及如何处理 script tags 中的 schema markup。完成标准是:可选的排除功能能够阻止 Optimole URLs 出现在 schema images 中,同时保持其他图像优化行为不变。

由索引模型根据 Issue 内容生成。

描述

medium new feature
What problem does this address?

Images referenced inside of schema markup (for example, rich product snippets) typically send the Optimole image URL to the search engines, not the clean, local URL.

For example:
https://mlyqxds8ijge.i.optimole.com/w:2048/h:1152/q:80/f:best/https://some-site.com/wp-content/uploads/image.jpg

Instead of:
https://some-site.com/wp-content/uploads/image.jpg

What is your proposed solution?

It would be ideal if Optimole could optionally exclude the images referenced inside of the schema markup so they get a normal URL and not the Optimole URL. Basically, I think we want the option to excluded images inside of script tags, or script tags with an ID or class:

<script id="website-schema" type="application/ld+json">...schema content...</script>
Will this feature require documentation? (Optional)

None

主要语言
PHP
星标
74
派生
14
平均合并
2 天 9 小时
30 天内合并 PR
22

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Codeinwp/optimole-wp 的其他 Issue

查看 Codeinwp/optimole-wp 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。