test feed
the new wp 1.5.1.2 sends everything, including private/draft posts, to RSS
Solution to WP1.5.1 RSS errors
The new WordPress 1.5.1 update has an issue with RSS feeds.
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-blog-header.php, line 136 locate: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)) ) {
if ( preg_match(’/cgi/’,php_sapi_name()) ) {
header(’Status: 304 Not Modified’);
echo "\r\n\r\n";Change this to:
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)) ) {
if ( preg_match(’/cgi/’,php_sapi_name()) ) {
header(’Status: 304 Not Modified’);
echo "\r\n\r\n";Upload and your feeds should be restored.
If you notice the hi-lighted line is the only one that’s actually changed.
Update:
There’s an official solution for this problem now.
download this fix
save it as ‘wp-blog-header.php’ and replace your current version with this fix.Nice.
Notes:
This is not my work. This is merely a simplified restating of a fix by anonymousbugger located at mosquito.wordpress.org, which corrects the problem with client_last_modified. If it is empty, wp-blog-header.php calls strtotime("") and that returns ‘00:00:00 of the current day’. Adding an extra ‘$client_last_modified &&’ fixes the issue.
June 11th, 2005 at 11:05 pm e
[…]
Shadow
如 影 随 行
« test feed
WP RSS solution
[…]