WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #35031, comment 7


Ignore:
Timestamp:
12/15/2015 10:45:36 PM (3 years ago)
Author:
bobbingwide
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35031, comment 7

    v2 v3  
    33I have 3 'fixture's with the same post title - Huntercombe GC. One for 2014, one for 2015 and the latest for 2016.
    44
    5 IDs and slugs are: 14  huntercombe-gc, 492 huntercombe-gc-2 and 699 huntercombe-gc-3
     5IDs and slugs are: 14  huntercombe-gc, 492 huntercombe-gc-2, and 699 huntercombe-gc-3
    66Only post 699 has post meta _wp_old_slug. The value is 'huntercombe-gc'
    77
     
    99It redirects to /fixture/huntercombe-gc-3
    1010
    11 I don't understand why the new post was given the post meta
    12 
    1311Workaround: delete the unwanted postmeta row.
    1412
     13Further analysis reveals:
    1514
     15The final post was initially created as "pending".
     16
     17In that state it had a post_name of 'huntercombe-gc'.
     18When it was published the _wp_old_slug was set, and the new post_name became huntercombe-gc-3.
     19
     20
     21
     22