Make WordPress Core

Ticket #16934: 16934.2.patch

File 16934.2.patch, 694 bytes (added by chriscct7, 9 years ago)
  • src/wp-includes/canonical.php

     
    6767        }
    6868
    6969        $original = @parse_url($requested_url);
    70         if ( false === $original )
     70        if ( false === $original ) {
    7171                return;
     72        }
    7273
    73         // Some PHP setups turn requests for / into /index.php in REQUEST_URI
    74         // See: https://core.trac.wordpress.org/ticket/5017
    75         // See: https://core.trac.wordpress.org/ticket/7173
    76         // Disabled, for now:
    77         // $original['path'] = preg_replace('|/index\.php$|', '/', $original['path']);
    78 
    7974        $redirect = $original;
    8075        $redirect_url = false;
    8176