[wp-trac] [WordPress Trac] #35031: wp_old_slug_redirect() in 4.4 redirecting existing posts
WordPress Trac
noreply at wordpress.org
Wed Dec 16 04:40:08 UTC 2015
#35031: wp_old_slug_redirect() in 4.4 redirecting existing posts
-------------------------------------------------+-------------------------
Reporter: douglsmith | Owner: pento
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.4.1
Component: Query | Version: 4.4
Severity: critical | Resolution:
Keywords: has-patch needs-unit-tests needs- | Focuses:
testing |
-------------------------------------------------+-------------------------
Comment (by jobst):
Replying to [comment:17 pento]:
> `_wp_old_slug` is the slug that the post used to have, before it was
changed. If the post slug is never changed, it doesn't have a
`_wp_old_slug` meta value.
>
> The current post slug is stored in the `post_name`.
So why is it necessary to check for the "_wp_old_slug" as the slug is
already contained in the post table? I am just trying to get my head
around this ...
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35031#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list