No comments have been added to this post yet.

News from WP Dev. blog

近两天久未更新的WP Dev blog连续有两位老大发布新闻。17日是Ryan写的“What’s going on?”18号Carthik又发布了“The New Theme System”的大文。真是让人激动不已,巴不得快快能看到1.3的发布,说实话,早就想用1.3了,也用过早期的好几个Alpha,有几个致命Bug吓得我立马回头是岸,有一次大概是0903后的一个版本数据升级转换程序还弄丢了我的Comments数据,第二天到Wp论坛一看,都在嚷嚷这事儿,哈哈,还好我损失不大。再加上当时想上Kubrick模板,所以决定除非1.3正式版本,一般情况不敢再去尝试Nightly了。其实现在对Kubrick了解以后,改成1.3也不是很难了。而且Ryan大人已经做了两个版本的Kubrick for 1.3了,我隔壁邻居的alpha-4用得正起劲儿。

1.3把1.2的index.php分割成了好几块,这对定制太方便了,也能有效减少了改页面造成的失误,能更有利的检查代码。

当然1.3并不仅仅是只有这么一点点的进步和改动,下面来看看他们两位都带来了什么好消息:

Ryan写了一些1.3的新功能摘要:

* Permalinks and cruft-free links have received a lot of attention. %category% and %author% permalink tags are now supported. Permalinks are now fully supported not just via mod_rewrite but also via PATH_INFO and 404. If you are using mod_rewrite, 1.3 will automatically update your .htaccess file with the necessary rewrite rules.(Permalink的一些增强和改进,对不能设置Web的mod_rewrite的用户带来了福音)

* I18N has been expanded and improved. Plugins and themes can load their own language catalogs, and I18N URIs are now supported.(i18n是internationalization[国际化]的缩写,首位的i和末尾的n之间有18个字母,所以就简写为 i18n了)

* We moved to a new XML-RPC library.

* We added support for enclosures.

* The plugin API has been greatly expanded, and we are already seeing a number of spam-fighting plugins making use of 1.3’s numerous hooks. 1.3 will have a rich variety of plugins available to combat comment spam.(近来有些WP用户是深受垃圾的困扰,有的还被广告机器人盯上了梢)

Carthik主要提到了新的风格系统,用户将能更自由的定制自己的风格模板:

The next version of WordPress will have support for user-defined themes built in. Until now, WordPress used index.php and the comments-files in conjunction with a CSS stylesheet, to control the way it presented the content when published. All other pages, including the category and archive pages were actually generated by passing parameters to the index.php page. The introduction of the theme system does not mean that the old method of styling papges will not work. If you are upgrading from v1.2 or v1.2.1, users have the liberty to continue using their existing design, without switching to the new system. The new Theme system will provide a method for you to define different physical (.php) files for the different components of your weblog. Let us call each of the different physical *.php files a template. So, with the new theme system, you can define different templates for the category archives, the monthly archives, the individual-entry pages etc.

Nobody here?