From 2c75118680a0c408d392864fcf312ec380dd049e Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 17 Aug 2004 02:29:37 +0000 Subject: [PATCH] Use is_single(). git-svn-id: https://develop.svn.wordpress.org/trunk@1537 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-links.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/template-functions-links.php b/wp-includes/template-functions-links.php index c5094b12dd..e64882cf84 100644 --- a/wp-includes/template-functions-links.php +++ b/wp-includes/template-functions-links.php @@ -244,10 +244,10 @@ function edit_comment_link($link = 'Edit This', $before = '', $after = '') { function previous_post($format='%', $previous='previous post: ', $title='yes', $in_same_cat='no', $limitprev=1, $excluded_categories='') { global $id, $post, $wpdb; - global $p, $posts, $posts_per_page, $s, $single; + global $posts, $posts_per_page, $s; global $querystring_start, $querystring_equal, $querystring_separator; - if(($p) || ($posts_per_page == 1) || 1 == $single) { + if(($posts_per_page == 1) || is_single()) { $current_post_date = $post->post_date; $current_category = $post->post_category; @@ -281,8 +281,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 $posts_per_page, $post, $wpdb, $single; - if(1 == $posts_per_page || 1 == $single) { + global $posts_per_page, $post, $wpdb; + if(1 == $posts_per_page || is_single()) { $current_post_date = $post->post_date; $current_category = $post->post_category;