Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[询问]主题设置 - 收录配置 - 统计代码 可以自行增加 async 等参数么? #363

Closed
StarryVoid opened this issue Apr 13, 2021 · 1 comment

Comments

@StarryVoid
Copy link

StarryVoid commented Apr 13, 2021

PHP 版本:7.4.11
Kratos 版本:3.2.8
WordPress 版本:5.7
User Agent 信息:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36


主题设置 - 收录配置 - 统计代码

在这里面写入的<script src="https://www.googletagmanager.com/gtag/js?id=G-**********" ><script> 能否自行增加 async 等异步参数
效果如 <script async src="https://www.googletagmanager.com/gtag/js?id=G-**********" ><script> 所示

目前填入配置后,点击保存,再刷新,发现被清除掉 async 参数,无法写入。

@seatonjiang
Copy link
Owner

这个参数默认被过滤了,我在新版本中加上了,等下个版本推送即可,参考 wp_kses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants