Deprecated: Function ereg() is deprecated in /home/silence/blog.silence.idv.tw/wp-content/plugins/tantan-flickr/flickr.php on line 56

Deprecated: Assigning the return value of new by reference is deprecated in /home/silence/blog.silence.idv.tw/wp-content/plugins/tantan-flickr/flickr.php(83) : runtime-created function on line 1

Strict Standards: Non-static method TPGuestbook::get_instance() should not be called statically in /home/silence/blog.silence.idv.tw/wp-content/plugins/tp-guestbook/tp-guestbook.php on line 506

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GoogleSitemapGeneratorLoader::Enable() should not be called statically in /home/silence/blog.silence.idv.tw/wp-includes/plugin.php on line 311
SILENCE Blog » Blog 文章彙整 » 升級至 Wordpress 2.1
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 934

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/silence/blog.silence.idv.tw/wp-includes/kses.php on line 935
SILENCE Blog

升級至 Wordpress 2.1

2007, 1月 27 3:03 am

天花了點時間將Wordpress Blog 從 2.0.7升級到 2.1﹐由於已經知道 Pagebar 這個Plugin會有相容性的問題﹐所以到作者網站當漏1.3.1版即可。

Plugin相容性:

以我的Blog內而言﹐需要更新的 plugin 為:

  1. Pagebar(已發佈新版)
  2. Postview Plus(已發佈新版)
  3. UTW(尚未發佈)

tinymce 吃掉 <div> 標籤:

TinyMCE 改為 tabbed 的方式﹐可以快速切換原始碼﹐這功能自從用過了官方網站的 Blog 後﹐已經肖想很久了﹐不過居然帶來一點小麻煩﹐會吃掉<div></div>這個標籤﹐並且以<p>來取代﹐所以必須手動修改一下位在 wordpress/wp-incluede/js/tinymce 的 tiny_mce_config.php 檔:
於 24 行:

$valid_elements = ‘p/-div[*],-strong/-b[*],-em/-i[*],-font[*],-ul[*],-ol[*],-li[*],*[*]‘;

將「p/-div[*],」去掉改成:

$valid_elements = ‘-strong/-b[*],-em/-i[*],-font[*],-ul[*],-ol[*],-li[*],*[*]‘;

Post Formatting 問題:

另外 2.1 版本也順便更新了 wpautop 這個 function﹐會在輸出文章時﹐自動修改格式﹐所以也很要命的幫我把 <div></div> 標籤內自動加上 <p></p>﹐變成<div><p></p></div>﹐這 function 在2.1版本是放在 wp-includes/formatting.php 內﹐只要把第 66 行的

$pee = preg_replace( ‘|<p>(<div[^>]*>\s*)|’, “$1<p>”, $pee );

註解掉即可

TinyMCE 切換 visual, code 時會造成斷行格式亂掉

這問題似乎只會出現在 Firefox 身上﹐使用 IE 就不會﹐這我沒找到原因﹐但使用 冰漾 所修改的 TinyMCE 完整版 後就沒這個問題了!

希望以上對有遇類似問題的朋友們有幫助

目前有 8 個回應, 3 個引用

冰漾 回應此篇文章 於 2007, 1月 27

oh, god…
你把我的問題都解決了@@a

太棒了…

# 那該死的

冰漾 回應此篇文章 於 2007, 1月 27

# 那該死的<p>

huthief 回應此篇文章 於 2007, 1月 28

請教一下,我升級為wordpress 2.1之後,使用vSlider Wide 2.1佈景,會經常性的發生 右邊的sidebar 與下方的 footer 不會出現,可是再多refresh幾次又會跑出來
連將所有佈景檔還原成未修改的檔案,情況依舊

我換過其他佈景,不會有這樣的情況
不知這是怎樣的問題?
未升級前還不會有這樣的情況

感謝你撥空協助

SILENCE 回應此篇文章 於 2007, 1月 28

@huthief
請問你有使用 wp-cache 這 plugin 嗎?

huthief 回應此篇文章 於 2007, 1月 29

@SILENCE
我沒有用wp-cache 這 plugin,
說明一下我的升級方式好了
我是上傳2.1版後解開,再將原2.0.7下的wp-content 放上去(有保留2.1的akismet.php)
然後再逐一起用plugin
事實上,再未啟用plugin時我就有發現這樣的問題
經初步排除,將檔案還原成vSlider Wide 2.1的原始版本也會發現,只是頻率較少

我進wp-content 中有發現cache目錄 ,但已經很久沒有異動,不知何時放進去的。查看過2.1沒有此目錄,所以我就手動將它砍了

以上是所有過程

另一個訊息提供給你參考
後來我換過兩個佈景 mistylook(http://wpthemes.info/misty-look/)、iPhone(http://www.san-tin.com/blog/?p=57)
其中mistylook有同樣問題,但iPhone完全沒有
可惜自己不會,不然也想研究程式看看問題

SILENCE 回應此篇文章 於 2007, 1月 30

偶之前也發生過﹐但當初懷疑是 WP-Cache造成。
但您沒用這 plugin 就可以先排除掉這原因。

之後沒空理他也就沒再發生了…
不過當初是2.0.6版﹐2.1到目前為止倒是沒發生過
再持續觀察一下好了 :)
若您有發現什麼也可以一起討論討論!

旮旯子 回應此篇文章 於 2007, 2月 8

請問大大
你有遇到排程的問題嗎
我更新到2.1版後
文章排程PO文無效
而且時間到了
他倒數的時間會越來越多
怎麼會這樣…
難道我的文章不敢出來見人=.=

終極邊疆BLOG 引用此篇文章 於 2007, 2月 14

被 Dreamhost 逼上 Wordpress 2.1…

DreamHost 將於 2/19 再次試著把伺服器上的 PHP5 升級到 5.2.2。根據公告的說法,這次的升級會影響到 2.1 版以前的 WordPress:
- Wordpress versions under 2.1
Any version of wordpress under 2.1 will have problems after the…

所以是一定得上 Wordpress 2.1 囉 at wILliAm’s bLog pingback此篇文章 於 2007, 2月 15

[...] SILENCE Blog » Blog 文章彙整 » 升級至 Wordpress 2.1 [...]

huthief 回應此篇文章 於 2007, 2月 25

@SILENCE
今天升級到2.1.1版後,就沒有這樣的問題了
可能是bug吧
能解決這個問題真好

[...] ericsk’s blog » WordPress 2.1+ 的 page 問題 SILENCE Blog » Blog 文章彙整 » 升級至 Wordpress 2.1 終極邊疆BLOG » 被 Dreamhost 逼上 Wordpress [...]

想要留言嗎?