removed redundant conditional get code
git-svn-id: http://svn.automattic.com/wordpress/trunk@1045 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ca52df7875
commit
800110b266
14
wp-rdf.php
14
wp-rdf.php
|
@ -7,20 +7,6 @@ if (! $feed) {
|
|||
|
||||
header('Content-type: application/rss+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);
|
||||
*/
|
||||
|
||||
add_filter('the_content', 'trim');
|
||||
?>
|
||||
<?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
|
||||
|
|
14
wp-rss2.php
14
wp-rss2.php
|
@ -7,20 +7,6 @@ if (! $feed) {
|
|||
|
||||
header('Content-type: application/rss+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').'"?'.'>'; ?>
|
||||
<!-- generator="wordpress/<?php echo $wp_version ?>" -->
|
||||
|
|
Loading…
Reference in New Issue