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

WordPress Trac noreply at wordpress.org
Wed Dec 16 09:59:14 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):

 Updated #35012 with a scenario to reproduce the redirect loop problem.
 I then reduced the test to

 {{{
 if ( 1 === $wp_query->post_count ) {
         return;
 }
 }}}

 This basically says... if you got what you were looking for in the first
 place then that's fine by me.
 But I believe that the next query may still need an order by to prevent it
 from producing random results.

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


More information about the wp-trac mailing list