disabling the not-modified header code.
git-svn-id: http://svn.automattic.com/wordpress/trunk@724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
063d189be9
commit
0cfd832cbe
|
@ -4,6 +4,7 @@ $doing_rss = 1;
|
||||||
header('Content-type: text/xml', true);
|
header('Content-type: text/xml', true);
|
||||||
require('wp-blog-header.php');
|
require('wp-blog-header.php');
|
||||||
|
|
||||||
|
/* This doesn't take into account edits
|
||||||
// Get the time of the most recent article
|
// Get the time of the most recent article
|
||||||
$maxdate = $wpdb->get_var("SELECT max(post_date) FROM $tableposts");
|
$maxdate = $wpdb->get_var("SELECT max(post_date) FROM $tableposts");
|
||||||
$unixtime = strtotime($maxdate);
|
$unixtime = strtotime($maxdate);
|
||||||
|
@ -15,6 +16,7 @@ $cetag = (isset($clast)) ? md5($clast) : '';
|
||||||
// send it in a Last-Modified header
|
// send it in a Last-Modified header
|
||||||
header("Last-Modified: " . $clast, true);
|
header("Last-Modified: " . $clast, true);
|
||||||
header("Etag: " . $cetag, true);
|
header("Etag: " . $cetag, true);
|
||||||
|
*/
|
||||||
|
|
||||||
add_filter('the_content', 'trim');
|
add_filter('the_content', 'trim');
|
||||||
if (!isset($rss_language)) { $rss_language = 'en'; }
|
if (!isset($rss_language)) { $rss_language = 'en'; }
|
||||||
|
|
|
@ -5,6 +5,7 @@ $doing_rss = 1;
|
||||||
header('Content-type: text/xml', true);
|
header('Content-type: text/xml', true);
|
||||||
require('wp-blog-header.php');
|
require('wp-blog-header.php');
|
||||||
|
|
||||||
|
/* This doesn't take into account edits
|
||||||
// Get the time of the most recent article
|
// Get the time of the most recent article
|
||||||
$maxdate = $wpdb->get_var("SELECT max(post_date) FROM $tableposts");
|
$maxdate = $wpdb->get_var("SELECT max(post_date) FROM $tableposts");
|
||||||
$unixtime = strtotime($maxdate);
|
$unixtime = strtotime($maxdate);
|
||||||
|
@ -16,6 +17,7 @@ $cetag = (isset($clast)) ? md5($clast) : '';
|
||||||
// send it in a Last-Modified header
|
// send it in a Last-Modified header
|
||||||
header("Last-Modified: " . $clast, true);
|
header("Last-Modified: " . $clast, true);
|
||||||
header("Etag: " . $cetag, true);
|
header("Etag: " . $cetag, true);
|
||||||
|
*/
|
||||||
|
|
||||||
if (!isset($rss_language)) { $rss_language = 'en'; }
|
if (!isset($rss_language)) { $rss_language = 'en'; }
|
||||||
if (!isset($rss_encoded_html)) { $rss_encoded_html = 0; }
|
if (!isset($rss_encoded_html)) { $rss_encoded_html = 0; }
|
||||||
|
|
Loading…
Reference in New Issue