Changeset 1045

Show
Ignore:
Timestamp:
03/31/04 21:27:45 (4 years ago)
Author:
michelvaldrighi
Message:

removed redundant conditional get code

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-rdf.php

    r1040 r1045  
    77 
    88header('Content-type: application/rss+xml', true); 
    9  
    10 /* This doesn't take into account edits 
    11 // Get the time of the most recent article 
    12 $maxdate = $wpdb->get_var("SELECT max(post_date) FROM $tableposts"); 
    13 $unixtime = strtotime($maxdate); 
    14  
    15 // format timestamp for Last-Modified header 
    16 $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 header 
    20 header("Last-Modified: " . $clast, true); 
    21 header("Etag: " . $cetag, true); 
    22 */ 
    239 
    2410add_filter('the_content', 'trim'); 
  • trunk/wp-rss2.php

    r1041 r1045  
    77 
    88header('Content-type: application/rss+xml', true); 
    9  
    10 /* This doesn't take into account edits 
    11 // Get the time of the most recent article 
    12 $maxdate = $wpdb->get_var("SELECT max(post_date) FROM $tableposts"); 
    13 $unixtime = strtotime($maxdate); 
    14  
    15 // format timestamp for Last-Modified header 
    16 $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 header 
    20 header("Last-Modified: " . $clast, true); 
    21 header("Etag: " . $cetag, true); 
    22 */ 
    239 
    2410?>