From c3a7760c077dc83d53d67420c8fc1cf5993301ff Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Wed, 31 Mar 2004 21:27:45 +0000 Subject: [PATCH] removed redundant conditional get code git-svn-id: https://develop.svn.wordpress.org/trunk@1045 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-rdf.php | 14 -------------- wp-rss2.php | 14 -------------- 2 files changed, 28 deletions(-) diff --git a/wp-rdf.php b/wp-rdf.php index 4765b3a028..1559154d87 100644 --- a/wp-rdf.php +++ b/wp-rdf.php @@ -7,20 +7,6 @@ if (! $feed) { header('Content-type: application/rss+xml', true); -/* 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); - -// format timestamp for Last-Modified header -$clast = gmdate("D, d M Y H:i:s \G\M\T", $unixtime); -$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'); ?> '; ?> diff --git a/wp-rss2.php b/wp-rss2.php index 700d21869f..5aec502881 100644 --- a/wp-rss2.php +++ b/wp-rss2.php @@ -7,20 +7,6 @@ if (! $feed) { header('Content-type: application/rss+xml', true); -/* 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); - -// format timestamp for Last-Modified header -$clast = gmdate("D, d M Y H:i:s \G\M\T", $unixtime); -$cetag = (isset($clast)) ? md5($clast) : ''; - -// send it in a Last-Modified header -header("Last-Modified: " . $clast, true); -header("Etag: " . $cetag, true); -*/ - ?> '; ?>