[wp-cvs] wordpress/wp-includes template-functions-links.php, 1.28,
1.29
Ryan Boren
rboren at users.sourceforge.net
Tue Aug 17 02:29:47 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20031
Modified Files:
template-functions-links.php
Log Message:
Use is_single().
Index: template-functions-links.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/template-functions-links.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** template-functions-links.php 16 Aug 2004 22:50:06 -0000 1.28
--- template-functions-links.php 17 Aug 2004 02:29:37 -0000 1.29
***************
*** 245,252 ****
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 $querystring_start, $querystring_equal, $querystring_separator;
! if(($p) || ($posts_per_page == 1) || 1 == $single) {
$current_post_date = $post->post_date;
--- 245,252 ----
function previous_post($format='%', $previous='previous post: ', $title='yes', $in_same_cat='no', $limitprev=1, $excluded_categories='') {
global $id, $post, $wpdb;
! global $posts, $posts_per_page, $s;
global $querystring_start, $querystring_equal, $querystring_separator;
! if(($posts_per_page == 1) || is_single()) {
$current_post_date = $post->post_date;
***************
*** 282,287 ****
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) {
$current_post_date = $post->post_date;
--- 282,287 ----
function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat='no', $limitnext=1, $excluded_categories='') {
! global $posts_per_page, $post, $wpdb;
! if(1 == $posts_per_page || is_single()) {
$current_post_date = $post->post_date;
More information about the cvs
mailing list