Fix Wordpress 1.5.1 RSS Error
Filed in: WordPress — May 14th, 2005
The newly realeased Wordpress 1.5.1 has possible bug in RSS feed. If your WP 1.5.1 feed does not work, try the following fix.
The problem:
The feeds are not accurate, and returning with error 304
The “/feed” page which should reflect the entire install’s feed is only outputting a feed when a new entry is produced, and, after what seems to be 24 hours, returns to a state of nul.
The solution:
In wp-blogheader.php, line 136 locate:
[PHP]if ( ($client_last_modified && $client_etag) ?
((strtotime($client_last_modified) >= strtotime($wp_last_modified)) && ($client_etag == $wp_etag)) :
((strtotime($client_last_modified) >= strtotime($wp_last_modified)) || ($client_etag == $wp_etag)) ) {[/PHP]
Replace it with:
[PHP] if ( ($client_last_modified && $client_etag) ?
((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)) ) {[/php]
[ Source, via BloggingPro ]
Thought:
I shall wait for another month before upgrade so that major bugs are discovered and fixed.


