Changeset 1044
- Timestamp:
- 03/31/2004 09:25:48 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-rss.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-rss.php
r1022 r1044 9 9 header('Content-type: text/xml', true); 10 10 11 /* This doesn't take into account edits12 // Get the time of the most recent article13 $maxdate = $wpdb->get_var("SELECT max(post_date) FROM $tableposts");14 $unixtime = strtotime($maxdate);15 16 // format timestamp for Last-Modified header17 $clast = gmdate("D, d M Y H:i:s \G\M\T", $unixtime);18 $cetag = (isset($clast)) ? md5($clast) : '';19 20 // send it in a Last-Modified header21 header("Last-Modified: " . $clast, true);22 header("Etag: " . $cetag, true);23 */24 25 11 ?> 26 12 <?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?> … … 31 17 <link><?php bloginfo_rss("url") ?></link> 32 18 <description><?php bloginfo_rss("description") ?></description> 33 <lastBuildDate><?php echo gmdate("D, d M Y H:i:s"); ?> GMT</lastBuildDate>19 <lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT')); ?></lastBuildDate> 34 20 <docs>http://backend.userland.com/rss092</docs> 35 21 <managingEditor><?php echo antispambot(get_settings('admin_email')) ?></managingEditor>
Note: See TracChangeset
for help on using the changeset viewer.