mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Correct inverted logic.
git-svn-id: https://develop.svn.wordpress.org/trunk@3533 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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'");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user