Make WordPress Core


Ignore:
Timestamp:
11/22/2011 09:50:50 PM (14 years ago)
Author:
markjaquith
Message:

Introduce initial_db_version and leverage it so that pointers only get shown to updated installs, not new 3.3 installs. props nacin. see #18693

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/schema.php

    r19249 r19410  
    331331 */
    332332function populate_options() {
    333     global $wpdb, $wp_db_version, $current_site;
     333    global $wpdb, $wp_db_version, $current_site, $wp_db_current_db_version;
    334334
    335335    $guessurl = wp_guess_url();
     
    481481    );
    482482
     483    // 3.3
     484    if ( ! is_multisite() ) {
     485        $options['initial_db_version'] = ! empty( $wp_db_current_db_version ) && $wp_current_db_version < $wp_db_version
     486            ? $wp_current_db_version : $wp_db_version;
     487    }
     488
    483489    // 3.0 multisite
    484490    if ( is_multisite() ) {
     
    887893        'upload_space_check_disabled' => '0',
    888894        'subdomain_install' => intval( $subdomain_install ),
    889         'global_terms_enabled' => global_terms_enabled() ? '1' : '0'
     895        'global_terms_enabled' => global_terms_enabled() ? '1' : '0',
     896        'initial_db_version' => get_option( 'initial_db_version' ),
    890897    );
    891898    if ( ! $subdomain_install )
Note: See TracChangeset for help on using the changeset viewer.