WordPress.org

Make WordPress Core

Ticket #5558: 5558.r6630.diff

File 5558.r6630.diff, 774 bytes (added by hansengel, 13 years ago)

Fixes #5558 with r6630, synchronzing RDF item IDs with those of RSS and Atom feeds—corrects both ID declarations

  • wp-includes/feed-rdf.php

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