From 521f99d371dc6cbc13f727ae86b8d7d411174d30 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 14 Feb 2006 23:37:28 +0000 Subject: [PATCH] Correct inverted logic. git-svn-id: http://svn.automattic.com/wordpress/trunk@3533 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/upgrade-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/upgrade-functions.php b/wp-admin/upgrade-functions.php index b7c8748cc..eeda1adc4 100644 --- a/wp-admin/upgrade-functions.php +++ b/wp-admin/upgrade-functions.php @@ -359,7 +359,7 @@ function upgrade_210() { if ( $wp_current_db_version < 3531 ) { // Give future posts a post_status of future. $now = gmdate('Y-m-d H:i:59'); - $posts = $wpdb->query ("UPDATE $wpdb->posts SET post_status = 'future' WHERE post_status = 'publish' and post_date_gmt < '$now'"); + $posts = $wpdb->query ("UPDATE $wpdb->posts SET post_status = 'future' WHERE post_status = 'publish' AND post_date_gmt > '$now'"); } }