WordPress.org

Make WordPress Core

Ticket #5558: fix-rdf-IDs.diff

File fix-rdf-IDs.diff, 739 bytes (added by kurtmckee, 11 years ago)

Replace two the_permalink_rss() calls with the_guid(). Applies to trunk (rev 13579).

  • feed-rdf.php

     
    3030        <items>
    3131                <rdf:Seq>
    3232                <?php while (have_posts()): the_post(); ?>
    33                         <rdf:li rdf:resource="<?php the_permalink_rss() ?>"/>
     33                        <rdf:li rdf:resource="<?php the_guid() ?>"/>
    3434                <?php endwhile; ?>
    3535                </rdf:Seq>
    3636        </items>
    3737</channel>
    3838<?php rewind_posts(); while (have_posts()): the_post(); ?>
    39 <item rdf:about="<?php the_permalink_rss() ?>">
     39<item rdf:about="<?php the_guid() ?>">
    4040        <title><?php the_title_rss() ?></title>
    4141        <link><?php the_permalink_rss() ?></link>
    4242         <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt, false); ?></dc:date>