테마 점검

설명

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.

트랙 포맷팅 활성화 방법

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.
Examples:
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.' );

이들 두 개의 vars 중 어느 하나라도 정의 될 경우 새로운 트랙 체크 박스가 점검하세요! 버튼 옆에 나타날 것입니다.

FAQ

It’s not flagging “bad” things, as such. The theme check is designed to be a non-perfect way to test for compliance with the Theme Review guidelines. Not all themes must adhere to these guidelines. The purpose of the checking tool is to ensure that themes uploaded to the central WordPress.org theme repository meet the latest standards of WordPress themes and will work on a wide variety of sites.

Many sites use customized themes, and that’s perfectly okay. But themes that are intended for use on many different kinds of sites by the public need to have a certain minimum level of capabilities, in order to ensure proper functioning in many different environments. The Theme Review guidelines are created with that goal in mind.

This is a great plugin for everyone that really likes to develop a WordPress theme and make successfully tests for the basic WordPress standards.
The errors separated in 'Required', 'Warning', 'Recommended' and 'info'. Also provide the basic information of this error and makes you understand where the problem is.

개발에 관심이 있으십니까?

변경이력

20190801.1

Fix missing nonce and nonce check on admin page. props Steven Stern for reporting the issue to the plugins team. Though this is technically a CSRF, there is no vulnerability arising from it, as the only thing that could be done with the form is to scan a theme.

20190208.1

Add new styles for the block editor. See https://meta.trac.wordpress.org/ticket/3921

20160523.1

Fix for theme-names with dashes in them

Comments stripping changes

Many changes by the theme review team and others. See Github for full change list.

20151211.1

Full sync with Github and all the changes that have happened there.

Release for 4.4 deprecated functions.

20140929.1

Added new checks and updates from Frank Klein at Automattic. Thanks Frank!

Updated deprecated function listings

Customizer check: All add_settings must use sanitization callbacks, for security