WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/18/2013 01:44:22 PM (7 years ago)
Author:
markjaquith
Message:

Consistently use $wp_rewrite->index instead of hardcoding "index.php".

props wonderboymusic. fixes #7337

File:
1 edited

Legend:

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

    r22564 r23305  
    14501450
    14511451        $request = preg_replace( "|$wp_rewrite->pagination_base/\d+/?$|", '', $request);
    1452         $request = preg_replace( '|^index\.php|i', '', $request);
     1452        $request = preg_replace( '|^' . preg_quote( $wp_rewrite->index, '|' ) . '|i', '', $request);
    14531453        $request = ltrim($request, '/');
    14541454
     
    14561456
    14571457        if ( $wp_rewrite->using_index_permalinks() && ( $pagenum > 1 || '' != $request ) )
    1458             $base .= 'index.php/';
     1458            $base .= $wp_rewrite->index . '/';
    14591459
    14601460        if ( $pagenum > 1 ) {
Note: See TracChangeset for help on using the changeset viewer.