Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#5693 closed defect (bug) (invalid)

Changing a page's parent does not change the page's guid

Reported by: truthandcoffee's profile truthandcoffee Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

When making a change to the parent/child relationship of two existing pages, the guid of the child page does not update to reflect the new association. For example, if I have:

(www.somesite.com)

  • Existing Page 1 (slug: page1)
  • Existing Page 2 (slug: page2)

guid of 'Existing Page 1' is 'http://www.somesite.com/page1'
guid of 'Existing Page 2' is 'http://www.somesite.com/page2'

If I create a brand new 'Page 3', and set it as a child of 'Existing Page 1', the guid of 'Page 3' is 'http://www.somesite.com/page1/page3'. This is exactly how it should be.

But, if I go back and assign 'Existing Page 2' to be a child of 'Existing Page 1', the guid of 'Existing Page 2' does not change to reflect the new relationship, but instead stays as 'http://www.somesite.com/page2', whereas it seems as it should become 'http://www.somesite.com/page1/page2'.

Change History (2)

#1 @filosofo
18 years ago

  • Milestone 2.6 deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 2.3.1 deleted

Although it looks like an URL, the guid is a globally unique identifier, not a URL. The important thing is that it's unique to that page.

#2 @jeremyclarke
18 years ago

It is e.g. used for things like RSS feeds, where the reader/aggregator will decide if it's the same post based on the guid. It's kind of counterintuitive though because it looks like the_permalink().

Note: See TracTickets for help on using tickets.