Make WordPress Core


Ignore:
Timestamp:
11/22/2011 09:50:50 PM (13 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/upgrade.php

    r19389 r19410  
    11511151        && is_main_site() && ! defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) )
    11521152            delete_metadata( 'user', 0, 'dismissed_wp_pointers', '', true );
     1153
     1154    if ( $wp_current_db_version < 19390 && is_main_site() ) {
     1155        update_site_option( 'initial_db_version', $wp_current_db_version );
     1156        // populate_options() will handle single-site.
     1157    }
    11531158
    11541159
Note: See TracChangeset for help on using the changeset viewer.