[wp-trac] [WordPress Trac] #37115: recent canonical change is giving an infinite 301 redirect loop

WordPress Trac noreply at wordpress.org
Thu Jun 16 16:26:41 UTC 2016


#37115: recent canonical change is giving an infinite 301 redirect loop
--------------------------+-----------------------------
 Reporter:  solomon123br  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Canonical     |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hello,
 For 4.5.2 in canonical.php line 175, in prior versions there was an elseif
 condition which was removed. Can you please add it back?

 && isset($wp_query->queried_object) &&

 For example, when we have akamai injecting GET parameters to our home
 page, it just goes in an infinite 301 loop due to line 175 now evaluating
 TRUE when in the past it would evaluate as FALSE, and we'd like that back.

 Please and thank you awesome wordpress team!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37115>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list