Fix previous/next links for slugs containing 'page'. Props xknown. fixes #5318

git-svn-id: http://svn.automattic.com/wordpress/trunk@6415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-12-19 19:27:14 +00:00
parent 34780230f9
commit 4004a7cffa
1 changed files with 1 additions and 1 deletions

View File

@ -622,7 +622,7 @@ function get_pagenum_link($pagenum = 1) {
$query_string = ''; $query_string = '';
} }
$request = preg_replace( '|page/(.+)/?$|', '', $request); $request = preg_replace( '|page/\d+/?$|', '', $request);
$request = preg_replace( '|^index\.php|', '', $request); $request = preg_replace( '|^index\.php|', '', $request);
$request = ltrim($request, '/'); $request = ltrim($request, '/');