mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Remove post_category references.
git-svn-id: https://develop.svn.wordpress.org/trunk@597 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user