In `wp_link_pages()`, ensure that `$prev` is greater than `0`.

Props betzster.
Fixes #25273.


git-svn-id: https://develop.svn.wordpress.org/trunk@34108 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-09-14 02:45:33 +00:00
parent 6064924c18
commit 2d5945f0fc
1 changed files with 1 additions and 1 deletions

View File

@ -849,7 +849,7 @@ function wp_link_pages( $args = '' ) {
} elseif ( $more ) {
$output .= $r['before'];
$prev = $page - 1;
if ( $prev ) {
if ( $prev > 0 ) {
$link = _wp_link_page( $prev ) . $r['link_before'] . $r['previouspagelink'] . $r['link_after'] . '</a>';
/** This filter is documented in wp-includes/post-template.php */