From 0cfd832cbe9e5f63e621f92d28f7ed1f44a718b5 Mon Sep 17 00:00:00 2001 From: alex_t_king Date: Mon, 5 Jan 2004 19:36:49 +0000 Subject: [PATCH] disabling the not-modified header code. git-svn-id: http://svn.automattic.com/wordpress/trunk@724 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-rdf.php | 2 ++ wp-rss.php | 2 ++ 2 files changed, 4 insertions(+) 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; }