[wp-trac] Re: [WordPress Trac] #4894: Atom feed invalid after initial install

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 4 18:27:33 GMT 2007


#4894: Atom feed invalid after initial install
----------------------------------------------+-----------------------------
 Reporter:  rubys                             |        Owner:  anonymous
     Type:  defect                            |       Status:  new      
 Priority:  normal                            |    Milestone:  2.3      
Component:  General                           |      Version:  2.3      
 Severity:  normal                            |   Resolution:           
 Keywords:  atom feed validation needs-patch  |  
----------------------------------------------+-----------------------------
Comment (by Otto42):

 In ATOM feeds, the link with rel=alternate is the permalink. The ID is
 supposed to simply be a globally unique ID. The most important thing about
 the ID is that it never, ever, changes. It's not tied to your permalink
 structure, as such, it's simply a unique identifier which never changes.

 This is why we use the post->guid field to store it. If the permalink
 structure changes, the ID field won't.

 So the real problem here is what ryan and mark say, we don't set a
 post_guid for the first post in the wp_install_defaults().

 +1 to mark's suggestion. Adding a simple /?p=1 will work just fine. I'd go
 so far as to suggest that we make the ID always use the /?p=XX link style,
 but that's outside the scope of this ticket.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4894#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list