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
This commit is contained in:
Scott Taylor 2015-09-14 02:46:24 +00:00
parent b62bcef1b1
commit 07c6fad006
2 changed files with 2 additions and 2 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 */

View File

@ -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.