Fix previous/next links for slugs containing 'page'. Props xknown. fixes #5318
git-svn-id: https://develop.svn.wordpress.org/trunk@6415 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c15c27ec2c
commit
c66540fc1a
|
@ -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, '/');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue