Recently Updated Post 是用來在sidebar顯示最近有更新文章的plugin,使用之後發現滑鼠移到文章上會出現的title標題是亂碼,於是自己看theloop.php亂改一通,結果真的正常了,特此一記

開啟recently-updates-posts.php,找到這一段(第18行)

.htmlentities($p->post_title).

改成

.wp_specialchars(strip_tags($p->post_title)).

這樣就ok了

2008.02.01 Update! (誰要幫我訂正…)

Write for in English..humm..well..it’s my 1st english article..
If you use asia based (like Chinese) language to write your blog, in Recently Updated Post‘s sidebar widget will show the words message when mouse over the post links in the title. (<a title=”blahblah“> the blue words will show garbage characters)

I follow the example of theloop.php (it’s work good) and fix it.

open recently-updates-posts.php find these (line18)

.htmlentities($p->post_title).

change it to

.wp_specialchars(strip_tags($p->post_title)).

ok!

Author

現為網路行銷工作者。曾建立韓國部落格程式 Tatter Tools 臺灣中文社群、擔任 Mozilla Taiwan Firefox 社群版主與 Wiki 責任編輯。熱愛學習語言藉以瞭解當地文化。

發表迴響

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料