Changeset 3531

Show
Ignore:
Timestamp:
02/14/06 23:22:22 (3 years ago)
Author:
ryan
Message:

Give future posts a post_status of future when upgrading.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/upgrade-functions.php

    r3517 r3531  
    355355    if ( $wp_current_db_version < 3513 ) { 
    356356        populate_roles_210(); 
     357    } 
     358 
     359    if ( $wp_current_db_version < 3531 ) { 
     360        // Give future posts a post_status of future. 
     361        $now = gmdate('Y-m-d H:i:59'); 
     362        $posts = $wpdb->query ("UPDATE $wpdb->posts SET post_status = 'future' WHERE post_status = 'publish' and post_date_gmt < '$now'"); 
    357363    } 
    358364} 
  • trunk/wp-includes/version.php

    r3515 r3531  
    44 
    55$wp_version = '2.1-alpha1'; 
    6 $wp_db_version = 3514
     6$wp_db_version = 3531
    77 
    88?>