Only upgrade if we are installed. Fixes #7627 props pishmishy.

git-svn-id: http://svn.automattic.com/wordpress/trunk@8763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2008-08-28 20:55:40 +00:00
parent d0ac3df8f7
commit be92ff6425
2 changed files with 5 additions and 2 deletions

View File

@ -141,6 +141,9 @@ function wp_upgrade() {
if ( $wp_db_version == $wp_current_db_version )
return;
if(!is_blog_installed())
return;
wp_check_mysql_version();
wp_cache_flush();
make_db_current_silent();

View File

@ -45,7 +45,7 @@ $step = (int) $step;
<body>
<h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1>
<?php if ( get_option('db_version') == $wp_db_version ) : ?>
<?php if ( get_option('db_version') == $wp_db_version || !is_blog_installed()) : ?>
<h2><?php _e('No Upgrade Required'); ?></h2>
<p><?php _e('Your WordPress database is already up-to-date!'); ?></p>
@ -92,4 +92,4 @@ endswitch;
endif;
?>
</body>
</html>
</html>