Fix PATH_INFO first page paging link. fixes #5039
git-svn-id: http://svn.automattic.com/wordpress/trunk@6152 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d3d447d6e9
commit
c005340430
|
@ -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' );
|
||||
|
|
Loading…
Reference in New Issue