[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:00:35 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 needs-unit-tests needs-    |     Focuses:
  testing                                        |
-------------------------------------------------+-------------------------
Changes (by pento):

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


Comment:

 In [changeset:"36128"]:
 {{{
 #!CommitTicketReference repository="" revision="36128"
 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.

 Fixes #35031 for trunk.
 }}}

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


More information about the wp-trac mailing list