diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index c6fc86a09d..5174936de1 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -3324,7 +3324,7 @@ function paginate_links( $args = '' ) { endif; endif; endfor; - if ( $args['prev_next'] && $current && ( $current < $total || -1 == $total ) ) : + if ( $args['prev_next'] && $current && $current < $total ) : $link = str_replace( '%_%', $args['format'], $args['base'] ); $link = str_replace( '%#%', $current + 1, $link ); if ( $add_args )