Some more get_pagenum_link() fixes.

git-svn-id: http://svn.automattic.com/wordpress/trunk@5611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-05-31 03:36:40 +00:00
parent 544f18ce7d
commit d268eae391
1 changed files with 1 additions and 3 deletions

View File

@ -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;