[wp-trac] [WordPress Trac] #35031: wp_old_slug_redirect() in 4.4 redirecting existing posts
WordPress Trac
noreply at wordpress.org
Thu Dec 17 01:10:30 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:28 bobbingwide]:
I just checked this on my system and it works correctly.
I duplicated a post, then changed the slug to end up with "_wp_old_slug"
for that post.
I then duplicated the newly created post again, but left it saved as a
draft (pending).
I then searched using phpMyAdmin the table wp_postmeta for "_wp_old_slug"
and sorted it in order of post_id, showing the last two post_id's
correctly on top.
Both had the same "_wp_old_slug", which is correct as the slug has not
been changed.
Clicking on the link for the first post displayed the first post
correctly.
> Note: I'm currently having problems when I introduced "pending" posts
with the same slug into the scenario.
> The existence of the pending post seems to prevent a visitor from
viewing the previously published post.
> It gives a 404 when you click on the permalink for the existing
published post.
>
> Note: I've not be working in a vanilla environment; it seems WP-members
was affecting the results in one.
> In another the pending post's slug is already being suffixed. Watch this
space.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35031#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list