Ticket #2771: rewrite.php.diff
| File rewrite.php.diff, 480 bytes (added by , 19 years ago) |
|---|
| Line | |
|---|---|
| 1 | @@ -97,7 +97,9 @@ |
| 2 | $url = str_replace('://www.', '://', $url); |
| 3 | |
| 4 | // Strip 'index.php/' if we're not using path info permalinks |
| 5 | - if ( false === strpos($rewrite, 'index.php/') ) |
| 6 | + // $rewrite is an array! |
| 7 | + //if ( false === strpos($rewrite, 'index.php/') ) |
| 8 | + if ( false === strpos(key($rewrite), 'index.php/') ) |
| 9 | $url = str_replace('index.php/', '', $url); |
| 10 | |
| 11 | if ( false !== strpos($url, get_option('home')) ) { |