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:
parent
6064924c18
commit
2d5945f0fc
|
@ -849,7 +849,7 @@ function wp_link_pages( $args = '' ) {
|
||||||
} elseif ( $more ) {
|
} elseif ( $more ) {
|
||||||
$output .= $r['before'];
|
$output .= $r['before'];
|
||||||
$prev = $page - 1;
|
$prev = $page - 1;
|
||||||
if ( $prev ) {
|
if ( $prev > 0 ) {
|
||||||
$link = _wp_link_page( $prev ) . $r['link_before'] . $r['previouspagelink'] . $r['link_after'] . '</a>';
|
$link = _wp_link_page( $prev ) . $r['link_before'] . $r['previouspagelink'] . $r['link_after'] . '</a>';
|
||||||
|
|
||||||
/** This filter is documented in wp-includes/post-template.php */
|
/** This filter is documented in wp-includes/post-template.php */
|
||||||
|
|
Loading…
Reference in New Issue