WordPress.org

Make WordPress Core

Ticket #4773: canonical.php.diff

File canonical.php.diff, 622 bytes (added by jbctech, 14 years ago)

Possible solution

  • canonical.php

     
    142142                // var_dump($redirect_url); die();
    143143                $redirect_url = apply_filters('redirect_canonical', $redirect_url, $requested_url);
    144144                if ( $do_redirect) {
     145                        $redirect_url = strtolower($redirect_url);
    145146                        // protect against chained redirects
    146147                        if ( !redirect_canonical($redirect_url, false) ) {
    147148                                wp_redirect($redirect_url, 301);
     
    180181
    181182add_action('template_redirect', 'redirect_canonical');
    182183
    183 ?>
    184  No newline at end of file
     184?>