disabling the not-modified header code.
git-svn-id: https://develop.svn.wordpress.org/trunk@724 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
24f52ce90f
commit
79698ba6b4
@ -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'; }
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user