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

WordPress Trac noreply at wordpress.org
Tue Dec 15 18:38:42 UTC 2015


#35031: wp_old_slug_redirect() in 4.4 redirecting existing posts
--------------------------+--------------------
 Reporter:  douglsmith    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.4.1
Component:  Query         |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------

Comment (by bobbingwide):

 The patch does not work for my non-hierarchical post type.

 I have 3 'fixture's with the same post title - Huntercombe GC. One for
 2014, one for 2015 and the latest, created after migrating to WP 4.4, for
 2016.

 IDs and slugs are: 14  huntercombe-gc, 492 huntercombe-gc-2 and 699
 huntercombe-gc-3
 Only post 699 has post meta _wp_old_slug. The value is 'huntercombe-gc'

 The current logic means I can no longer visit /fixture/huntercombe-gc
 It redirects to /fixture/huntercombe-gc-3

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


More information about the wp-trac mailing list