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

WordPress Trac noreply at wordpress.org
Wed Dec 16 07:08:44 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 bobbingwide):

 Replying to [comment:20 pento]:
 > This is so that old links don't break, if the slug is changed.
 > The bug in this ticket is if a post slug is changed, then a new post is
 created with the old slug, it still redirects, instead of stopping at the
 new post.

 Should I be raising a separate ticket where, IMO, the _wp_old_slug should
 not have been created in the first place when the new post changed from
 "pending" to "published" ?

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

More information about the wp-trac mailing list