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

git-svn-id: http://svn.automattic.com/wordpress/trunk@6144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-09-20 20:56:22 +00:00
parent 3be5215e08
commit 40b7e58b82
1 changed files with 2 additions and 1 deletions

View File

@ -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' ) );