Skip to content

Commit

Permalink
Always remove index.php from request before contructing page links. f…
Browse files Browse the repository at this point in the history
…ixes #5000

git-svn-id: http://svn.automattic.com/wordpress/trunk@6144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Sep 20, 2007
1 parent 3be5215 commit 40b7e58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wp-includes/link-template.php
Expand Up @@ -501,7 +501,8 @@ function get_pagenum_link($pagenum = 1) {
}

$request = preg_replace( '|page/(.+)/?$|', '', $request);
$request = preg_replace( '|^index\.php/|', '', $request);
$request = preg_replace( '|^index\.php|', '', $request);
$request = ltrim($request, '/');

$base = trailingslashit( get_bloginfo( 'url' ) );

Expand Down

0 comments on commit 40b7e58

Please sign in to comment.