[wp-trac] [WordPress Trac] #35012: wp_old_slug_redirect can cause redirect loop

WordPress Trac noreply at wordpress.org
Wed Dec 16 09:39:51 UTC 2015


#35012: wp_old_slug_redirect can cause redirect loop
----------------------------------------------------+--------------------
 Reporter:  vdwijngaert                             |       Owner:
     Type:  defect (bug)                            |      Status:  new
 Priority:  normal                                  |   Milestone:  4.4.1
Component:  Canonical                               |     Version:  4.4
 Severity:  normal                                  |  Resolution:
 Keywords:  has-patch 2nd-opinion needs-unit-tests  |     Focuses:
----------------------------------------------------+--------------------

Comment (by bobbingwide):

 See my comments in #35031 suggesting how this problem could be reproduced.

 I achieved it just by using the post editor. With two posts.
 id 717, title Cycle 1, slug cycle-2-2
 id 720, title Cycle 2, slug cycle-2

 values for _wp_old_slug post_meta for these two posts
 717: cycle-1 and cycle-2
 720: cycle-1 and cycle-2-2

 visiting 2015/12/cycle-1 gives a redirect loop
 visiting 2015/12/cycle-2 does also
 visiting 2015/12/cycle-2-2 ditto

 The good news is pento's first fix resolves this issue.

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


More information about the wp-trac mailing list