Ticket #60584: post-template.php.patch
File post-template.php.patch, 836 bytes (added by , 7 months ago) |
---|
-
src/wp-includes/post-template.php
1057 1057 if ( 1 == $i ) { 1058 1058 $url = get_permalink(); 1059 1059 } else { 1060 if ( ! get_option( 'permalink_structure' ) || in_array( $post->post_status, array( 'draft', 'pending' ), true ) ) {1060 if ( ! get_option( 'permalink_structure' ) || in_array( $post->post_status, array( 'draft', 'pending', 'future' ), true ) ) { 1061 1061 $url = add_query_arg( 'page', $i, get_permalink() ); 1062 1062 } elseif ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_on_front' ) == $post->ID ) { 1063 1063 $url = trailingslashit( get_permalink() ) . user_trailingslashit( "$wp_rewrite->pagination_base/" . $i, 'single_paged' );