mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
b62bcef1b1
commit
07c6fad006
@ -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 */
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user