diGu主题发布以后就提交到WP的官网审核,经过几次的退回重新修改之后,在前天看到WP官网发来的邮件说审核通过,那个振奋啊。diGu是我的第三个主题,第一个没有发布,现在已经尘封了,第二个iSimple是修改自mg12所发布的iNove,虽有发布,但没提交到wp官网。这第三个也算弥补了上两个的遗憾,折腾了这么久也终于通过了审核。

这是第一次审核不通过的理由:

While reviewing diGu – 1.0.3 we found the following:
– Please include a complete English translation
– Please remove non-theme files, like Thumbs.db
– I don’t see the blog title or tag line displayed any where
– Posts with multiple pages only show the first one, with no links to the others
– Don’t hard code content licenses into the theme, it is up to the author of the content to determine a license
– WordPress should be WordPress

这是第二次审核不通过:

While reviewing diGu – 1.0.4 we found the following:
– Please include a complete English translation (still see non-English above the search form that should be included in the translation)
– I don’t see the blog title or tag line, I wonder if this is because the nav bar gets pushed around with child pages?  Have you tried this theme with the sample data linked to below?
– Don’t specify a content license, that would be up to the blog author

这是第三次:

Have you tried this theme with the sample data here?
http://codex.wordpress.org/Theme_Development_Checklist#.22Theme_Unit_Tests.22.

最后审核OK的邮件:

Congratulations, your new theme diGu is now available to the public at <http://wordpress.org/extend/themes/digu>.

经过三次的折腾,终于通过了,自我庆祝一下吧。不过昨晚发现邮件里还有一封也是官网的邮件,原来主题报错,内容如下:

You have some direct output in the functions.php file, that breaks output buffering:
PHP Warning:  Cannot modify header information – headers already sent by (output started at /home/wporg/public_html/extend/themes-preview/wp-content/themes/digu/functions.php:374)
As a result the preview feature for your theme in the directory doesn’t work.
This could be something as a simple as a stray newline character in the functions.php file

经过Google一番,似乎是由于functions.php文件最后有几行空行引起的,修改了之后重新提交,这版本号又升到了1.0.7了,目前还未审核通过。不过如果你有使用到diGu主题,还是可以看到后台里有1.0.6的升级提示的。目前diGu主题发布页面有加入了官网的地址,以后所有更新都会提交到上面去。接下来会不会再继续更新,还不知道呢,也许会再写另外一个全新的主题也说不定呢。有了这次的经验,也许以后写起来会更加顺手。

另外提醒下有意提交到官网的童学,写完主题后到wp下载他们的测试数据导入到你的主题demo中去看看效果,如果看起来没问题就能比较顺利的通过审核。他们测试数据的地址是:http://codex.wordpress.org/Theme_Development_Checklist#.22Theme_Unit_Tests.22

PS:今天看到邮件似乎有为童学要给我做个Italian的语言包,不知道是否真的,不过还有点担心自己的英文翻译乱来,导致他看不懂我的主题里的英文。