Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Account for upcoming change in WP 5.7 / script tag use

未關閉
#591 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
php
領域
tooling

研究方向

審查現有的、用於檢查內嵌 HTML 中 script 標籤的 sniffs,以連結的 WPCS 和 WordPress Core PRs 作為起始參考和程式碼範例。檢查 WP 5.7 變更後它們是否仍能偵測相關模式;完成的標準是受影響的 sniffs 能正確處理新樣式。

由索引模型根據 Issue 內容生成。

描述

PR https://github.com/WordPress/WordPress-Coding-Standards/pull/1956 in WPCS refers to changes in WP Core which will remove the use of the <script> HTML tag in PHP code.

Any existing sniff which looks at the content of inline HTML and takes the <script> tag into account will need to be reviewed to see if it can still detect what it is looking for with the "new" way of writing this type of code.

This PR to WP Core gives some good examples of the "new" way of writing this type of code and can be used to for code samples: https://github.com/WordPress/wordpress-develop/pull/498/files

This PR shows the new functionality which will be added to Core: https://github.com/WordPress/wordpress-develop/pull/591

主要語言
PHP
星號
261
分支
44
平均合併
3 天 17 小時
30 天內合併 PR
9

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Automattic/VIP-Coding-Standards 的其他 Issue

查看 Automattic/VIP-Coding-Standards 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。