[wp-cvs] wordpress/wp-includes template-functions-links.php, 1.55, 1.56

Matthew Mullenweg saxmatt at users.sourceforge.net
Fri Feb 11 01:27:13 GMT 2005


Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21645/wp-includes

Modified Files:
	template-functions-links.php 
Log Message:
Don't show posts from the future

Index: template-functions-links.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/template-functions-links.php,v
retrieving revision 1.55
retrieving revision 1.56
diff -C2 -d -r1.55 -r1.56
*** template-functions-links.php	7 Feb 2005 07:37:53 -0000	1.55
--- template-functions-links.php	11 Feb 2005 01:27:10 -0000	1.56
***************
*** 356,364 ****
          }
  
!         $now = current_time('mysql');
  
          $limitnext--;
  
!         $nextpost = @$wpdb->get_row("SELECT ID,post_title FROM $wpdb->posts WHERE post_date > '$current_post_date' AND post_date < '$now' AND post_status = 'publish' $sqlcat $sql_exclude_cats AND ID != $post->ID ORDER BY post_date ASC LIMIT $limitnext,1");
          if ($nextpost) {
              $string = '<a href="'.get_permalink($nextpost->ID).'">'.$next;
--- 356,364 ----
          }
  
!         $now = current_time('mysql', 1);
  
          $limitnext--;
  
!         $nextpost = @$wpdb->get_row("SELECT ID,post_title FROM $wpdb->posts WHERE post_date > '$current_post_date' AND post_date_gmt < '$now' AND post_status = 'publish' $sqlcat $sql_exclude_cats AND ID != $post->ID ORDER BY post_date ASC LIMIT $limitnext,1");
          if ($nextpost) {
              $string = '<a href="'.get_permalink($nextpost->ID).'">'.$next;



More information about the cvs mailing list