Make WordPress Core


Ignore:
Timestamp:
02/12/2006 07:41:56 AM (19 years ago)
Author:
ryan
Message:

Post status = future. #2426

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-links.php

    r3510 r3514  
    295295    }
    296296
    297     $now = current_time('mysql');
    298    
    299     return @$wpdb->get_row("SELECT ID,post_title FROM $wpdb->posts $join WHERE post_date > '$current_post_date' AND post_date < '$now' AND post_type = 'post' AND post_status = 'publish' $posts_in_ex_cats_sql AND ID != $post->ID ORDER BY post_date ASC LIMIT 1");
     297    return @$wpdb->get_row("SELECT ID,post_title FROM $wpdb->posts $join WHERE post_date > '$current_post_date' AND post_type = 'post' AND post_status = 'publish' $posts_in_ex_cats_sql AND ID != $post->ID ORDER BY post_date ASC LIMIT 1");
    300298}
    301299
Note: See TracChangeset for help on using the changeset viewer.