Some more get_pagenum_link() fixes.
git-svn-id: https://develop.svn.wordpress.org/trunk@5611 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3b60a5107b
commit
5d7ce647d2
@ -484,7 +484,7 @@ function get_pagenum_link($pagenum = 1) {
|
||||
$query_string = '';
|
||||
}
|
||||
|
||||
$request = preg_replace( '|/?page/(.+)/?$|', '', $request);
|
||||
$request = preg_replace( '|page/(.+)/?$|', '', $request);
|
||||
|
||||
$base = trailingslashit( get_bloginfo( 'url' ) );
|
||||
|
||||
@ -494,8 +494,6 @@ function get_pagenum_link($pagenum = 1) {
|
||||
|
||||
if ( $pagenum > 1 ) {
|
||||
$request = ( ( !empty( $request ) ) ? trailingslashit( $request ) : $request ) . user_trailingslashit( 'page/' . $pagenum, 'paged' );
|
||||
} else {
|
||||
$request = user_trailingslashit( $request );
|
||||
}
|
||||
|
||||
$result = $base . $request . $query_string;
|
||||
|
Loading…
Reference in New Issue
Block a user