Always remove index.php from request before contructing page links. fixes #5000
git-svn-id: https://develop.svn.wordpress.org/trunk@6144 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2aa1dc4038
commit
4d35d6b824
@ -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' ) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user