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:
parent
34780230f9
commit
4004a7cffa
|
@ -622,7 +622,7 @@ function get_pagenum_link($pagenum = 1) {
|
|||
$query_string = '';
|
||||
}
|
||||
|
||||
$request = preg_replace( '|page/(.+)/?$|', '', $request);
|
||||
$request = preg_replace( '|page/\d+/?$|', '', $request);
|
||||
$request = preg_replace( '|^index\.php|', '', $request);
|
||||
$request = ltrim($request, '/');
|
||||
|
||||
|
|
Loading…
Reference in New Issue