From 79698ba6b453a8a3dc84194dc0093e084a6dc48e Mon Sep 17 00:00:00 2001 From: Alex King Date: Mon, 5 Jan 2004 19:36:49 +0000 Subject: [PATCH] disabling the not-modified header code. git-svn-id: https://develop.svn.wordpress.org/trunk@724 602fd350-edb4-49c9-b593-d223f7449a82 --- 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; }