使用Theme Check检测WordPress主题是否规范标准

作为WordPress主题制作者,应该尽量让自己的主题符合WordPress官方主题规范,倡萌今天简单介绍使用Theme Check检测WordPress主题是否规范标准的方法。

关于WordPress主题规范:http://codex.wordpress.org/Theme_Review

Theme Check 是一个简单但超好用的WordPress主题制作检测插件,可以快速检测出你的WordPress主题有哪些地方不符合规范标准,并且适当给出修改意见,省时省力!

以下是倡萌的cmhello主题的检测结果,看来还是有不少问题的(可见规范标准还是比较严格的):

wordpress-theme-check-wpdaxue_com

在使用该插件前,建议开启 WP_DEBUG 功能,在网站根目录下的 wp-config.php 添加以下代码即可:

define('WP_DEBUG', true);

在后台插件安装界面搜索 Theme Check 即可在线安装,或者下载 Theme Check

建议在本地环境测试,不要在正式上线的网站上测试。

关于Theme Check的更详细的用法,请访问:http://wp.tutsplus.com/tutorials/theme-development/how-to-customize-theme-check-for-validating-wordpress-themes/

来源:

https://www.wpdaxue.com/wordpress-theme-check.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_32268.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?