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:
parent
3be5215e08
commit
40b7e58b82
|
@ -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