From c00534043053931ee5b62684bef89cf027569180 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Sat, 22 Sep 2007 06:07:03 +0000 Subject: [PATCH] Fix PATH_INFO first page paging link. fixes #5039 git-svn-id: http://svn.automattic.com/wordpress/trunk@6152 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 2c35ab29f..6a0677b7d 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -506,9 +506,8 @@ function get_pagenum_link($pagenum = 1) { $base = trailingslashit( get_bloginfo( 'url' ) ); - if ( $wp_rewrite->using_index_permalinks() && ( $pagenum > 1 || ( 'page' == get_option('show_on_front') && get_option('page_on_front') )) ) { + if ( $wp_rewrite->using_index_permalinks() && ( $pagenum > 1 || '' != $request ) ) $base .= 'index.php/'; - } if ( $pagenum > 1 ) { $request = ( ( !empty( $request ) ) ? trailingslashit( $request ) : $request ) . user_trailingslashit( 'page/' . $pagenum, 'paged' );