WordPress 1.6 r2730 後的問題

我的 用 1.6,這其實是一條不歸路… (已經沒辦法 downgrade 了 XD)

前幾天升級到 r2735 後發現 write post 時 Categories 部分發生問題:

基於版號是 “1.6-ALPHA-do-not-use” (都已經跟你講不要用了),於是要 bug report 前先還是去找問題在哪,以及解決的方法… 最後找到是 r2730 產生的問題:

Date: Mon, 25 Jul 2005 06:55:25 +0800
From: Gea-Suan Lin <gslin@ccca.nctu.edu.tw>
Subject: 1.6-do-not-use, PHP warning in Categories (when write post)
To: wp-hackers@lists.automattic.com

When I upgrade to r2735 (and wp-admin/upgrade.php, of course), I found
there are some PHP warning when I write post:


I trace the code and found it’s because this patch:


I revert this function then it works fine.

* Gea-Suan Lin (public key: http://ccreader.nctu.edu.tw/~gslin/key.txt)
* If you cannot convince them, confuse them. — Harry S Truman