Permalink
Browse files

Always remove index.php from request before contructing page links. f…

…ixes #5000

git-svn-id: http://svn.automattic.com/wordpress/trunk@6144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 3be5215 commit 40b7e58b823cd00aa4e48dafe32a04d540d615fc ryan committed Sep 20, 2007
Showing with 2 additions and 1 deletion.
  1. +2 −1 wp-includes/link-template.php
View
3 wp-includes/link-template.php
@@ -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' ) );

0 comments on commit 40b7e58

Please sign in to comment.