Make WordPress Core

Changeset 1032 for trunk/wp-atom.php


Ignore:
Timestamp:
03/30/2004 02:14:45 AM (21 years ago)
Author:
michelvaldrighi
Message:

BRING OUT YOUR NUCLEONS, for we now have a really valid Atom 0.3 feed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-atom.php

    r1022 r1032  
    1717    <link rel="alternate" type="text/html" href="<?php bloginfo_rss('url') ?>" />
    1818    <tagline><?php bloginfo_rss("description") ?></tagline>
    19     <modified><?php echo gmdate('Y-m-d\TH:i:s\Z'); ?></modified>
    20     <copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate()); ?></copyright>
     19    <modified><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></modified>
     20    <copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate('blog')); ?></copyright>
    2121    <generator url="http://wordpress.org/" version="<?php echo $wp_version ?>">WordPress</generator>
    2222   
     
    2929        <link rel="alternate" type="text/html" href="<?php permalink_single_rss() ?>" />
    3030        <id><?php bloginfo_rss("url") ?>?p=<?php echo $id; ?></id>
    31         <modified><?php the_time('Y-m-d\TH:i:s\Z'); ?></modified>
    32         <issued><?php the_time('Y-m-d\TH:i:s\Z'); ?></issued>
     31        <modified><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_modified_gmt); ?></modified>
     32        <issued><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt); ?></issued>
    3333        <?php the_category_rss('rdf') ?>
    3434<?php $more = 1; if (get_settings('rss_use_excerpt')) {
Note: See TracChangeset for help on using the changeset viewer.