[wp-trac] [WordPress Trac] #15041: Page auto-draft & guid generation

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 5 15:41:29 UTC 2010


#15041: Page auto-draft & guid generation
--------------------------+-------------------------------------------------
 Reporter:  shawnparker   |       Owner:                        
     Type:  defect (bug)  |      Status:  new                   
 Priority:  normal        |   Milestone:  Awaiting Review       
Component:  Permalinks    |     Version:  3.0.1                 
 Severity:  major         |    Keywords:  page, auto-draft, guid
--------------------------+-------------------------------------------------
 Guid generation for pages is currently broken. `auto-draft` status is
 currently not handled and all page guids are simply the base `site_url`
 instead of `site_url + ?page_id=000`.

 I looks as if `auto-drafts` were handled for posts here:
 http://core.trac.wordpress.org/changeset/14948

 Attached is a patch for the `_get_page_link()` function in `wp-includes
 /link-template.php` to account for a `post_status` of `auto-draft` and
 properly generate the guid for pages (patch is to 3.0.1 tag, but issue
 exists in the same function in 3.0 branch and trunk as well).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15041>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list