Make WordPress Core


Ignore:
Timestamp:
01/18/2013 01:44:22 PM (13 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/rewrite.php

    r22441 r23305  
    316316    // Strip 'index.php/' if we're not using path info permalinks
    317317    if ( !$wp_rewrite->using_index_permalinks() )
    318         $url = str_replace('index.php/', '', $url);
     318        $url = str_replace( $wp_rewrite->index . '/', '', $url );
    319319
    320320    if ( false !== strpos($url, home_url()) ) {
Note: See TracChangeset for help on using the changeset viewer.