[wp-trac] [WordPress Trac] #35031: wp_old_slug_redirect() in 4.4 redirecting existing posts
WordPress Trac
noreply at wordpress.org
Tue Dec 15 23:03:32 UTC 2015
#35031: wp_old_slug_redirect() in 4.4 redirecting existing posts
--------------------------+--------------------
Reporter: douglsmith | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4.1
Component: Query | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+--------------------
Comment (by bobbingwide):
Steps to reproduce... with month and name permalink structure (
/%year%/%monthnum%/%postname%/ )
1. Add new post title `TRAC 35031` and publish
2. Add new post title `TRAC 35031` and save as pending
Both the pending and the published post have the same value for post_name:
`trac-35031`
3. Publish the pending post
The new post's post_name is changed (to `trac-35031-2`) and the
`_wp_old_slug` created as `trac-35031`
4. Attempt to view the first post - you get shown the second one.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35031#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list