Make WordPress Core

Changeset 2852


Ignore:
Timestamp:
09/08/2005 08:48:09 PM (19 years ago)
Author:
ryan
Message:

If PATH_INFO contains the index, don't use it for permalinks. Props gslin. fixes #1591

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r2834 r2852  
    13661366                // The requested permalink is in $pathinfo for path info requests and
    13671367                //  $req_uri for other requests.
    1368                 if (! empty($pathinfo)) {
     1368                if (! empty($pathinfo) && ($wp_rewrite->index != $pathinfo)) {
    13691369                    $request = $pathinfo;
    13701370                } else {
Note: See TracChangeset for help on using the changeset viewer.