lastBuildDate now uses the last modification date (as GMT), redundant old conditional get code now removed

git-svn-id: http://svn.automattic.com/wordpress/trunk@1044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
michelvaldrighi 2004-03-31 21:25:48 +00:00
parent 9fd1556828
commit ca52df7875
1 changed files with 1 additions and 15 deletions

View File

@ -8,20 +8,6 @@ if (! $feed) {
header('Content-type: text/xml', true); header('Content-type: text/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);
*/
?> ?>
<?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?> <?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
<!-- generator="wordpress/<?php echo $wp_version ?>" --> <!-- generator="wordpress/<?php echo $wp_version ?>" -->
@ -30,7 +16,7 @@ header("Etag: " . $cetag, true);
<title><?php bloginfo_rss("name") ?></title> <title><?php bloginfo_rss("name") ?></title>
<link><?php bloginfo_rss("url") ?></link> <link><?php bloginfo_rss("url") ?></link>
<description><?php bloginfo_rss("description") ?></description> <description><?php bloginfo_rss("description") ?></description>
<lastBuildDate><?php echo gmdate("D, d M Y H:i:s"); ?> GMT</lastBuildDate> <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT')); ?></lastBuildDate>
<docs>http://backend.userland.com/rss092</docs> <docs>http://backend.userland.com/rss092</docs>
<managingEditor><?php echo antispambot(get_settings('admin_email')) ?></managingEditor> <managingEditor><?php echo antispambot(get_settings('admin_email')) ?></managingEditor>
<webMaster><?php echo antispambot($admin_email) ?></webMaster> <webMaster><?php echo antispambot($admin_email) ?></webMaster>