Make WordPress Core


Ignore:
Timestamp:
09/20/2007 08:56:22 PM (17 years ago)
Author:
ryan
Message:

Always remove index.php from request before contructing page links. fixes #5000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r6142 r6144  
    502502
    503503        $request = preg_replace( '|page/(.+)/?$|', '', $request);
    504         $request = preg_replace( '|^index\.php/|', '', $request);
     504        $request = preg_replace( '|^index\.php|', '', $request);
     505        $request = ltrim($request, '/');
    505506
    506507        $base = trailingslashit( get_bloginfo( 'url' ) );
Note: See TracChangeset for help on using the changeset viewer.