mirror of
git://develop.git.wordpress.org/
synced 2025-02-25 17:13:30 +01:00
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 ) {
|
||||
$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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user