[wp-hackers] Why URL in GUID?

Andy Skelton skeltoac at gmail.com
Tue Oct 3 00:16:03 GMT 2006

On 10/2/06, Paul Menard <codehooligans at codehooligans.com> wrote:
> One thing I've often wondered about is why the full URL is stored as
> part of the Post guid field?

GUID is not "a place to store a canonical URL" or any such thing.
Changing the slug will invalidate the URL stored in the GUID, but the
GUID must remain unchanged. Storing the URL there is a quick-n-dirty
way to provide a string that will probably be Globally Unique.

If anyone would like to propose another way to generate a reasonable
GUID that is less confusing to db peekers, now's the time.


More information about the wp-hackers mailing list