[wp-testers] $post data's GUID

Philip M. Hofer (Frumph) philip at frumph.net
Tue May 18 09:42:37 UTC 2010


Yeah for some reason I have a bunch that are set to the non-permalink, and 
not the /?p=

for example here:  http://frumph.net/shop/?comic=736  i'm doing a var_dump 
of $post->guid;

a couple comics previous it's showing the same thing with the $post->guid; 
where it's not the /?p= type,  cannot reproduce why they're setting to the 
permalink structure, nor have I noticed it previous to this, however they 
are. /odd



----- Original Message ----- 
From: "Dion Hulse (dd32)" <wordpress at dd32.id.au>
To: <wp-testers at lists.automattic.com>
Sent: Tuesday, May 18, 2010 1:05 AM
Subject: Re: [wp-testers] $post data's GUID


> On Tue, 18 May 2010 16:32:47 +1000, Philip M. Hofer (Frumph) 
> <philip at frumph.net> wrote:
>
>> When changing the slug for a post is it supposed to modify the guid 
>> entry for the post as well?  currently it is not so it retains the old 
>> slug inside of it.
>
> The GUID should be set to the non-pretty-permalink uri, ie. 
> somesite.com/?p=345, You cannot rely on the guid field being a valid URI, 
> or being a valid entry point to a post, The fact it is a URI is merely 
> because its good unique identifier for posts.
>
> But no, I dont believe it should update it.
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
> 



More information about the wp-testers mailing list