WordPress 2.2 登場,對普通用家有以下的可見的改動。
- WordPress Widgets allow you to easily rearrange and customize areas of your weblog (usually sidebars) with drag-and-drop simplicity. This functionality was originally available as a plugin Widgets are now included by default in the core code, significantly cleaned up, and enabled for the default themes.
- Full Atom support, including updating our Atom feeds to use the 1.0 standard spec and including an implementation of the Atom Publishing API to complement our XML-RPC interface.
- A new Blogger importer that is able to handle the latest version of Google’s Blogger product and seamlessly import posts and comments without any user interaction beyond entering your login.
- Infinite comment stream, meaning that on your Edit Comments page when you delete or spam a comment using the AJAX links under each comment it will bring in another comment in the background so you always have 20 items on the page. (I know it sounds geeky, but try it!)
- We now protect you from activating a plugin or editing a file that will break your blog.
- Core plugin and filter speed optimizations should make everything feel a bit more snappy and lighter on your server.
- We’ve added a hook for WYSIWYG support in a future version of Safari.
在開發者角度有以下的改動。
- A new set of WordPress-specific XML-RPC APIs that allow for editing pages, setting categories, and much more.
- We now use jQuery for a number of internal functions, and hope to transition all of our JS to use it. (We still need volunteers for this.)
- Comment feeds now support multiple formats, including Atom.
- Our internal mail functions now use phpMailer, which allows for things like SMTP support.
- You can now set database collation and character set in your config file.
- You can also hardcode your site and WP URL in the config file, overriding the values in the DB.
- Finally we’ve increased the inline documentation of a number of functions inside of WP, which should help you navigate those parts of the code.
正如我之前談過,在 2.2 中 core team 選擇將 Automattic 自家的 Widgets 功能整合在 core package 內,令 Sidebar Modules Plugin (SBM) 和 K2 內置的 SBM 失效,要令 SBM 重生,可使用 Disable Widgets Plugin,又一個令我失望的做法。
另一個改動就是使用 WebKit build 420 以上的朋友,終於可以使用 TinyMCE WYSIWYG editor 了,不過這對我沒有任何影響,因為我是使用傳統 HTML editor 的。
我對這個版本較欣賞的改動,除了支援 Atom 1.0 feed、新的 XML-RPC API、用 jQuery 取代 prototype javascript library、自行選擇 preview 取代緩慢的 iFrame post preview、WebKit 新版本可使用 WYSIWYG editor 外,還有我之前提過的 wp-config.php 內的 character set 和 collation 的設定,對使用 UTF-8 編碼的用家(尤其是使用非英文寫 blog 的 bloggers)又同時使用 MySQL 4.1+ 的朋友實在方便得多,wp-config.php 中新增了以下兩句 codes,升級的話,只需把它們加進 wp-config.php 便可以了,加入的位置可參考 wp-config-sample.php,以後升級也不用修改 wp-includes/wp-db.php 了。
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');DB_COLLATE 留空便可,會自動選用 UTF-8 預設的 collation 'utf8_general_ci',如想使用其他 collation 的話,請在 DB_COLLATE 內註明。
用了用 habari,感覺還是相當不錯的。WP 似乎發展到最高峰了。。。
一條拋物線
@scavin:Habari 到現時為止我都覺得不錯,有時間研究 plugin 和 theme 的運作和結構,和可保留現有 permalink structure 的話,會建立一個 mirror blog 同時運行。
我裝了 WP 2.2 後,也裝了 Disable Widgets Plugin,
但是要修改 Module 時,出現 "You must specify a valid module name" 這樣的錯誤訊息,
請問這個要怎麼解決?
我是用 SBM 1.0.7i3 版本
@evenrain 你除了要選擇 module 外,在 "Module's title" 一欄還需填寫自選的名稱,才可按 <Add> 的。
我是修改舊的 Module,所以已經有填寫 Module's name 了 :shades:
@evenrain 對不起,一時看漏眼,獨立的 SBM 好像很久沒更新,我不知和 WP 2.2 的兼容度如何,我使用 K2 SVN 內的 SBM 就沒有這個問題。
@evenrain 遲些再試試獨立的 SBM 如何。
嗯,獨立的 SBM 的確是很久沒有更新了,
不知道該怎麼把 K2 裡的 SBM 拿出來用呢?
@evenrain:在 WP2.2 中使用獨立的 SBM 的確有你所遇到的問題,要找找有何方法可在 WP 2.2 使用 SBM。
@evenrain:已經找到令獨立 SBM 在 WP 2.2 運行的方法。