[wp-trac] [WordPress Trac] #35031: wp_old_slug_redirect() in 4.4 redirecting existing posts

WordPress Trac noreply at wordpress.org
Thu Dec 31 03:08:30 UTC 2015


#35031: wp_old_slug_redirect() in 4.4 redirecting existing posts
-----------------------------------+---------------------
 Reporter:  douglsmith             |       Owner:  pento
     Type:  defect (bug)           |      Status:  closed
 Priority:  highest omg bbq        |   Milestone:  4.4.1
Component:  Query                  |     Version:  4.4
 Severity:  critical               |  Resolution:  fixed
 Keywords:  has-patch fixed-major  |     Focuses:
-----------------------------------+---------------------
Changes (by pento):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"36129"]:
 {{{
 #!CommitTicketReference repository="" revision="36129"
 Redirects: Prevent redirects if a queried object exists.

 After [34659], it became possible to cause an incorrect redirect, by
 changing the slug of a post, then creating a new post with the old slug.
 The correct behaviour is to prevent redirecting to the old post.

 Props dd32, pento.

 Merge of [36128] to the 4.4 branch.

 Fixes #35031.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35031#comment:49>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list