From 07c6fad00699b832058b5a2e46c0cebff8cec200 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 14 Sep 2015 02:46:24 +0000 Subject: [PATCH] In `wp_link_pages()`, ensure that `$prev` is greater than `0`. Props betzster. Fixes #25273. Built from https://develop.svn.wordpress.org/trunk@34108 git-svn-id: http://core.svn.wordpress.org/trunk@34076 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index faf75ab4cc..09c7707417 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -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'] . ''; /** This filter is documented in wp-includes/post-template.php */ diff --git a/wp-includes/version.php b/wp-includes/version.php index bcebbe14d2..3ae183aeca 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34107'; +$wp_version = '4.4-alpha-34108'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.