Make WordPress Core


Ignore:
Timestamp:
12/10/2003 09:05:11 AM (23 years ago)
Author:
saxmatt
Message:

Remove post_category references.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2-include/b2functions.php

    r594 r597  
    377377    if ((!isset($cache_lastpostdate)) OR (!$use_cache)) {
    378378        $now = date("Y-m-d H:i:s",(time() + ($time_difference * 3600)));
    379         if ($pagenow != 'wp-post.php') {
    380             $showcatzero = 'post_category > 0 AND';
    381         } else {
    382             $showcatzero = '';
    383         }
    384         $lastpostdate = $wpdb->get_var("SELECT post_date FROM $tableposts WHERE $showcatzero post_date <= '$now' ORDER BY post_date DESC LIMIT 1");
     379
     380        $lastpostdate = $wpdb->get_var("SELECT post_date FROM $tableposts WHERE post_date <= '$now' ORDER BY post_date DESC LIMIT 1");
    385381        $cache_lastpostdate = $lastpostdate;
    386382//      echo $lastpostdate;
Note: See TracChangeset for help on using the changeset viewer.