From 372e3293f449903fa0da293507dcae417b79eb19 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Sun, 9 May 2004 23:26:41 +0000 Subject: [PATCH] Fix from Jay McCarthy and I cleaned up the function to remove some unused globals. git-svn-id: https://develop.svn.wordpress.org/trunk@1254 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-post.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wp-includes/template-functions-post.php b/wp-includes/template-functions-post.php index 910f30fe39..c3bf850399 100644 --- a/wp-includes/template-functions-post.php +++ b/wp-includes/template-functions-post.php @@ -313,10 +313,8 @@ function previous_post($format='%', $previous='previous post: ', $title='yes', $ } function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat='no', $limitnext=1, $excluded_categories='') { - global $tableposts, $p, $posts, $id, $post, $wpdb; - global $single; - global $querystring_start, $querystring_equal, $querystring_separator; - if(($p) || ($posts==1) || 1 == $single) { + global $tableposts, $posts_per_page, $post, $wpdb, $single; + if(1 == $posts_per_page || 1 == $single) { $current_post_date = $post->post_date; $current_category = $post->post_category;