[wp-trac] [WordPress Trac] #6492: Guids No Longer Have Permalink Format

WordPress Trac noreply at wordpress.org
Thu Sep 10 23:39:16 UTC 2015


#6492: Guids No Longer Have Permalink Format
-------------------------+-----------------------------
 Reporter:  brianwhite   |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Future Release
Component:  Database     |     Version:  2.5
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+-----------------------------

Comment (by here):

 There is also no verification that a newly created guid be unique.  Out of
 the box, guids are unreliable as unique identifiers.

 In my case, an imported post has guid "http://example.com/?p=100" , yet
 the site only has 90 posts.  As a result, the 10th "newly created" post
 ends up with a duplicate guid with post ID 100.

 Since we are relying on guids to be unique, this breaks things.

 Filtering wp_insert_post_data will allow an override to generate and use
 UUIDs or other unique identifier, but this definitely feels like something
 worth addressing in core.

 Are there still examples in core like Attachments and Customizer that are
 known to rely on guids for URI or path information?  Lets confirm and fix
 those first @74 , @75 .

--
Ticket URL: <https://core.trac.wordpress.org/ticket/6492#comment:78>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list