WordPress.org

Make WordPress Core

Ticket #14292: 14292.patch

File 14292.patch, 565 bytes (added by hakre, 4 years ago)
  • wp-includes/canonical.php

     
    341341                        $redirect_url .= '?' . $redirect['query']; 
    342342        } 
    343343 
    344         if ( !$redirect_url || $redirect_url == $requested_url ) 
     344        if ( !$redirect_url || strtolower( $redirect_url ) == strtolower( $requested_url ) ) 
    345345                return false; 
    346346 
    347347        // Note that you can use the "redirect_canonical" filter to cancel a canonical redirect for whatever reason by returning FALSE