Khwooo’s Weblog

May 19, 2005

[WP]升級後RSS feed秀斗!

Filed under: wordpress — khwooo @ 4:52 am

自從前幾天升級到1.5.1後,這幾天偶然看到空白一片的RSS feed,然後又會恢復正常,本來不以為意,不過出現的次數越來越多了,於是就找找文章,發現了之前升級沒注意到的事!!!

William’s Blog » Blog Archive » WordPress 升級至 1.5.1
最後再補充一下。不知道是我電腦的問題,還是 WordPress 1.5.1 的問題,RSS feed 總是會出現錯誤。我懷疑是 wp-blog-header.php 裡面,當變數 $str 的值有可能是 false 時,仍逕行呼叫 strtotime($str) 所致,於是我暫時把 wp-blog-header.php 的第 138 行:

((strtotime($client_last_modified) >= strtotime($wp_last_modified)) || ($client_etag == $wp_etag)) ) {

修改成

($client_last_modified && (strtotime($client_last_modified) >= strtotime($wp_last_modified)) || ($client_etag == $wp_etag)) ) {

如果你沒遇到同樣的問題,就請略過。

修改了,不知道會不會恢復正常,因為現在看起來依然是一片白

更新:過了約三十秒後,恢復正常了 =)

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: