WordPress.org

Make WordPress Core

Ticket #14292: 14292.diff

File 14292.diff, 587 bytes (added by ryan, 5 years ago)

Ignore case

  • wp-includes/canonical.php

     
    341341                        $redirect_url .= '?' . $redirect['query']; 
    342342        } 
    343343 
    344         if ( !$redirect_url || $redirect_url == $requested_url ) 
     344        if ( !$redirect_url || ( $redirect_url == $requested_url ) || ( $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