Remove post_category references.

git-svn-id: https://develop.svn.wordpress.org/trunk@597 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2003-12-10 09:05:11 +00:00
parent 27418e7333
commit 7e01e65ecd
2 changed files with 9 additions and 13 deletions

View File

@@ -376,12 +376,8 @@ function get_lastpostdate() {
global $tableposts, $cache_lastpostdate, $use_cache, $time_difference, $pagenow, $wpdb;
if ((!isset($cache_lastpostdate)) OR (!$use_cache)) {
$now = date("Y-m-d H:i:s",(time() + ($time_difference * 3600)));
if ($pagenow != 'wp-post.php') {
$showcatzero = 'post_category > 0 AND';
} else {
$showcatzero = '';
}
$lastpostdate = $wpdb->get_var("SELECT post_date FROM $tableposts WHERE $showcatzero post_date <= '$now' ORDER BY post_date DESC LIMIT 1");
$lastpostdate = $wpdb->get_var("SELECT post_date FROM $tableposts WHERE post_date <= '$now' ORDER BY post_date DESC LIMIT 1");
$cache_lastpostdate = $lastpostdate;
// echo $lastpostdate;
} else {