Changeset 1045
- Timestamp:
- 03/31/04 21:27:45 (4 years ago)
- Files:
-
- trunk/wp-rdf.php (modified) (1 diff)
- trunk/wp-rss2.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-rdf.php
r1040 r1045 7 7 8 8 header('Content-type: application/rss+xml', true); 9 10 /* This doesn't take into account edits11 // Get the time of the most recent article12 $maxdate = $wpdb->get_var("SELECT max(post_date) FROM $tableposts");13 $unixtime = strtotime($maxdate);14 15 // format timestamp for Last-Modified header16 $clast = gmdate("D, d M Y H:i:s \G\M\T", $unixtime);17 $cetag = (isset($clast)) ? md5($clast) : '';18 19 // send it in a Last-Modified header20 header("Last-Modified: " . $clast, true);21 header("Etag: " . $cetag, true);22 */23 9 24 10 add_filter('the_content', 'trim'); trunk/wp-rss2.php
r1041 r1045 7 7 8 8 header('Content-type: application/rss+xml', true); 9 10 /* This doesn't take into account edits11 // Get the time of the most recent article12 $maxdate = $wpdb->get_var("SELECT max(post_date) FROM $tableposts");13 $unixtime = strtotime($maxdate);14 15 // format timestamp for Last-Modified header16 $clast = gmdate("D, d M Y H:i:s \G\M\T", $unixtime);17 $cetag = (isset($clast)) ? md5($clast) : '';18 19 // send it in a Last-Modified header20 header("Last-Modified: " . $clast, true);21 header("Etag: " . $cetag, true);22 */23 9 24 10 ?>
