WordPress.org

Make WordPress Core

Ticket #4894: initial_post_id.patch

File initial_post_id.patch, 804 bytes (added by rubys, 11 years ago)
  • wp-includes/feed-atom.php

     
    3232                </author>
    3333                <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title>
    3434                <link rel="alternate" type="text/html" href="<?php the_permalink_rss() ?>" />
    35                 <id><?php the_guid(); ?></id>
     35                <id><?php the_guid() || the_permalink_rss(); ?></id>
    3636                <updated><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></updated>
    3737                <published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
    3838                <?php the_category_rss('atom') ?>
     
    4444<?php do_action('atom_entry'); ?>
    4545        </entry>
    4646        <?php endwhile ; ?>
    47 </feed>
    48  No newline at end of file
     47</feed>