[wp-trac] [WordPress Trac] #23074: Changing post's URL and then setting it back causes redirect loop (wp_old_slug_redirect)

WordPress Trac noreply at wordpress.org
Wed Jul 2 20:13:20 UTC 2014


#23074: Changing post's URL and then setting it back causes redirect loop
(wp_old_slug_redirect)
-------------------------------------------------+-------------------------
 Reporter:  vbuterin                             |       Owner:
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
Component:  Canonical                            |  Release
 Severity:  major                                |     Version:  3.5
 Keywords:  has-patch needs-unit-tests           |  Resolution:
  4.0-early                                      |     Focuses:
-------------------------------------------------+-------------------------

Comment (by MikeHansenMe):

 Looking at the code in wp_check_for_changed_slugs I think the problem is
 that the function returns before it ever gets to add/remove slugs because
 the post is not publish status. I have a patch for
 wp_check_for_changed_slug and some unit tests.

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


More information about the wp-trac mailing list