[wp-trac] [WordPress Trac] #35635: Redirect loop for custom post types in WP 4.4

WordPress Trac noreply at wordpress.org
Thu May 12 18:25:25 UTC 2016


#35635: Redirect loop for custom post types in WP 4.4
--------------------------+------------------------------
 Reporter:  standuncan    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Permalinks    |     Version:  4.4.1
 Severity:  critical      |  Resolution:
 Keywords:  dev-feedback  |     Focuses:
--------------------------+------------------------------
Changes (by standuncan):

 * keywords:  reporter-feedback dev-feedback => dev-feedback
 * severity:  normal => critical


Comment:

 I'm going to up the severity of this defect, since anyone who is
 experiencing this problem can not update their WP version and with recent
 vulnerabilities in this version of WP, it should be updated!

 I do not know the exact steps to recreate, but here is my scenario
 reiterated;

 1. Current version: 4.3.2
 2. Upgrade to version 4.4.1 or anything above;
 3. Permalinks set to "Post name"
 4. I have a category page with this markup in the template;
 {{{
 <div><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
 <div><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
 <div><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
 <div><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
 }}}
 5. When I click on one of those single post links above, from that
 category page, I receive an error stating:
  * Redirect Loop (ERR_TOO_MANY_REDIRECTS)
 6. I can see what is happening is the page is trying to add the category
 into the URL and then remove it from the URL and loops;
  * /%category%/%postname%/ => /%postname%/ => /%category%/%postname%/ =>
 etc

 I don't want to publicly display my client site, but I can provide code,
 screenshots, dev environment access possibly if it will help in resolving
 the issue. Thank you!

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


More information about the wp-trac mailing list