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

git-svn-id: https://develop.svn.wordpress.org/trunk@19410 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2011-11-22 21:50:50 +00:00
parent bc671426cb
commit 00fd073cc0
3 changed files with 18 additions and 2 deletions
+9 -2
View File
@@ -330,7 +330,7 @@ $wp_queries = wp_get_db_schema( 'all' );
* @uses $wp_db_version
*/
function populate_options() {
global $wpdb, $wp_db_version, $current_site;
global $wpdb, $wp_db_version, $current_site, $wp_db_current_db_version;
$guessurl = wp_guess_url();
@@ -480,6 +480,12 @@ function populate_options() {
'default_post_format' => 0,
);
// 3.3
if ( ! is_multisite() ) {
$options['initial_db_version'] = ! empty( $wp_db_current_db_version ) && $wp_current_db_version < $wp_db_version
? $wp_current_db_version : $wp_db_version;
}
// 3.0 multisite
if ( is_multisite() ) {
/* translators: blog tagline */
@@ -886,7 +892,8 @@ We hope you enjoy your new site. Thanks!
'add_new_users' => '0',
'upload_space_check_disabled' => '0',
'subdomain_install' => intval( $subdomain_install ),
'global_terms_enabled' => global_terms_enabled() ? '1' : '0'
'global_terms_enabled' => global_terms_enabled() ? '1' : '0',
'initial_db_version' => get_option( 'initial_db_version' ),
);
if ( ! $subdomain_install )
$sitemeta['illegal_names'][] = 'blog';