[wp-trac] [WordPress Trac] #35031: wp_old_slug_redirect() in 4.4 redirecting existing posts
WordPress Trac
noreply at wordpress.org
Sat Dec 12 01:11:44 UTC 2015
#35031: wp_old_slug_redirect() in 4.4 redirecting existing posts
--------------------------+-----------------------------
Reporter: douglsmith | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 4.4
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
After updating to WordPress 4.4, I noticed that some of my existing pages
were redirecting to other pages. The unique thing about these pages is
that at one time they had been moved to a new slug and a new page was
created and given the old slug.
I have not been able to recreate this condition by adding a new page,
changing the slug, then adding a new page at the original slug. Those
older pages had a `_wp_old_slug` custom field set with the original URL
but that is not being created as I move pages now. So this may only be an
issue for sites with older page moves.
I believe this behavior is caused by the removal of is_404() in [34659].
It had previously stopped a redirect away from a post / page that
currently exists, even if another post had its URL in a `_wp_old_slug`
custom field.
This is different from, but may be related to #35012.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35031>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list