mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Give future posts a post_status of future when upgrading.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
71ceecb82b
commit
a37a1d7440
@ -355,6 +355,12 @@ function upgrade_210() {
|
||||
if ( $wp_current_db_version < 3513 ) {
|
||||
populate_roles_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'");
|
||||
}
|
||||
}
|
||||
|
||||
// The functions we use to actually do stuff
|
||||
|
@ -3,6 +3,6 @@
|
||||
// This just holds the version number, in a separate file so we can bump it without cluttering the SVN
|
||||
|
||||
$wp_version = '2.1-alpha1';
|
||||
$wp_db_version = 3514;
|
||||
$wp_db_version = 3531;
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user