WordPress.org

Make WordPress Core

Changeset 34734


Ignore:
Timestamp:
10/01/2015 05:08:31 AM (4 years ago)
Author:
wonderboymusic
Message:

Canonical: remove unused code (commented-out) from redirect_canonical().

Props hakre, chriscct7.
Fixes #16934.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/canonical.php

    r34643 r34734  
    6868
    6969    $original = @parse_url($requested_url);
    70     if ( false === $original )
     70    if ( false === $original ) {
    7171        return;
    72 
    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']);
     72    }
    7873
    7974    $redirect = $original;
Note: See TracChangeset for help on using the changeset viewer.