diff --git a/wp-rdf.php b/wp-rdf.php index 0e153964db..89773f532d 100644 --- a/wp-rdf.php +++ b/wp-rdf.php @@ -4,6 +4,7 @@ $doing_rss = 1; header('Content-type: text/xml', true); require('wp-blog-header.php'); +/* This doesn't take into account edits // Get the time of the most recent article $maxdate = $wpdb->get_var("SELECT max(post_date) FROM $tableposts"); $unixtime = strtotime($maxdate); @@ -15,6 +16,7 @@ $cetag = (isset($clast)) ? md5($clast) : ''; // send it in a Last-Modified header header("Last-Modified: " . $clast, true); header("Etag: " . $cetag, true); +*/ add_filter('the_content', 'trim'); if (!isset($rss_language)) { $rss_language = 'en'; } diff --git a/wp-rss.php b/wp-rss.php index 5cd22328e6..d7d3ab7ea6 100644 --- a/wp-rss.php +++ b/wp-rss.php @@ -5,6 +5,7 @@ $doing_rss = 1; header('Content-type: text/xml', true); require('wp-blog-header.php'); +/* This doesn't take into account edits // Get the time of the most recent article $maxdate = $wpdb->get_var("SELECT max(post_date) FROM $tableposts"); $unixtime = strtotime($maxdate); @@ -16,6 +17,7 @@ $cetag = (isset($clast)) ? md5($clast) : ''; // send it in a Last-Modified header header("Last-Modified: " . $clast, true); header("Etag: " . $cetag, true); +*/ if (!isset($rss_language)) { $rss_language = 'en'; } if (!isset($rss_encoded_html)) { $rss_encoded_html = 0; }