WordPress 升級了做 2.3,安裝容易,但 upgrade plugins 搞一大輪。特此記錄自己做過甚麼,日後有跡可尋也:
有關 Tags:
- 因為 category 已名存實亡,所以有些 tag 變了跟 category 同字的中文,本來人家的 tag 是全英的…
- 棄用 UTW 後,template 改用 wordpress 原裝 template tag
- 為了出有色標籤雲,所以試用了 Simple Tags ,用在 sidebar 和 tag cloud 版面上。額外好處是可以自動在 feed 加入 tag 和 related posts 等資訊。
- 但單篇顯示 Related Tags 的功能還未找到
有關 Textile:
其實在新版本的 PHP5 上使用舊的 Textile library 會有奇怪問題,例如 list 裏的最後一個 item 不會自己 close tag。我自己本身用的是 Textile Wrapper ,所以只要更換 core 的 textile library 本身就可以了。
現在唯一還有作 Textile 更新的,是 Textpattern 內部使用的 Textile library,所以就試用 Textpatten4.0 裏的 classTextile.php ,不過還是有點問題:做連結時如使用 reference 方法,其值如果是 0 (e.g. "yahoo":0
) 的話,就會讀不到。我嘗試更新到 development trunk 的 classTextile.php 還是一樣。
經過一番 debug,發現問題源於 PHP 裏 ‘0′ 是 false 的,所以將這個
function shelveURL($text)
{
if (!$text) return '';
$ref = md5($text);
$this->urlshelf[$ref] = $text;
return 'urlref:'.$ref;
}
換成
function shelveURL($text)
{
if ($text=='') return '';
$ref = md5($text);
$this->urlshelf[$ref] = $text;
return 'urlref:'.$ref;
}
就可以了 (已改的檔案: classTextile.php ),已經在 Textpattern forum 作了 通知 ,但這算不算是 bug 我就不知了 。
我想問一下, 未昇級前你是使用那一個版本的 wordpress?
2.2
You keep it up now, udenrtsand? Really good to know.