[WordPress] 外掛分享: Theme Check

首頁外掛目錄 › Theme Check
WordPress 外掛 Theme Check 的封面圖片
20,000+
安裝啟用
★★★★
4.8/5 分(195 則評價)
819 天前
最後更新
問題解決
WordPress 3.7+ v20231220 上架:2018-06-08

內容簡介

主題檢查外掛是測試您的佈景主題並確保其符合最新 主題審查 標準的一種簡單方法。透過此外掛,您可以運行 WordPress.org 用於主題提交的所有自動化測試工具。

這些測試通過一個簡單的管理員選單運行,所有測試結果一次顯示。這對於佈景主題開發人員或任何希望確保其主題支持最新 WordPress 主題標準和實踐的人非常方便。

如何啟用 Trac 格式

主題審查團隊在審查主題時使用此外掛並將其輸出複製粘貼到 Trac 票中,Trac 系統有自己的標記語言。
要在 Theme-Check 中啟用 Trac 格式,您需要在 wp-config.php 中定義幾個變量:TC_PRE 和 TC_POST 用作票頭和票尾。
例如:

define( 'TC_PRE', 'Theme Review:[[br]]
- Themes should be reviewed using "define(\'WP_DEBUG\', true);" in wp-config.php[[br]]
- Themes should be reviewed using the test data from the Theme Checklists (TC)
-----
' );

define( 'TC_POST', 'Feel free to make use of the contact details below if you have any questions,
comments, or feedback:[[br]]
[[br]]
* Leave a comment on this ticket[[br]]
* Send an email to the Theme Review email list[[br]]
* Use the #wordpress-themes IRC channel on Freenode.' );

如果已經定義了這兩個變量中的任何一個,就會出現一個新的 Trac 核取方塊,靠近 Check it! 按鈕。

外掛標籤

開發者團隊

⬇ 下載最新版 (v20231220) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Theme Check」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The theme check plugin is an easy way to test your theme and make sure it’s up to spec with the latest theme review standards. With it, you can run all the same automated testing tools on your theme that WordPress.org uses for theme submissions.
The tests are run through a simple admin menu and all results are displayed at once. This is very handy for theme developers, or anybody looking to make sure that their theme supports the latest WordPress theme standards and practices.
How to enable trac formatting
The Theme Review team use this plugin while reviewing themes and copy/paste the output into trac tickets, the trac system has its own markup language.
To enable trac formatting in Theme-Check you need to define a couple of variables in wp-config.php: TC_PRE and TC_POST are used as a ticket header and footer.
For example:
define( 'TC_PRE', 'Theme Review:[[br]]
- Themes should be reviewed using "define(\'WP_DEBUG\', true);" in wp-config.php[[br]]
- Themes should be reviewed using the test data from the Theme Checklists (TC)
-----
' );

define( 'TC_POST', 'Feel free to make use of the contact details below if you have any questions,
comments, or feedback:[[br]]
[[br]]
* Leave a comment on this ticket[[br]]
* Send an email to the Theme Review email list[[br]]
* Use the #wordpress-themes IRC channel on Freenode.' );

If either of these two vars are defined a new trac tickbox will appear next to the Check it! button.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon