Make WordPress Core

Ticket #7627: 7627.patch

File 7627.patch, 981 bytes (added by pishmishy, 16 years ago)

use is_blog_installed()

  • includes/upgrade.php

     
    141141        if ( $wp_db_version == $wp_current_db_version )
    142142                return;
    143143
     144        if(!is_blog_installed())
     145                return;
     146
    144147        wp_check_mysql_version();
    145148        wp_cache_flush();
    146149        make_db_current_silent();
  • upgrade.php

     
    4545<body>
    4646<h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1>
    4747
    48 <?php if ( get_option('db_version') == $wp_db_version ) : ?>
     48<?php if ( get_option('db_version') == $wp_db_version || !is_blog_installed()) : ?>
    4949
    5050<h2><?php _e('No Upgrade Required'); ?></h2>
    5151<p><?php _e('Your WordPress database is already up-to-date!'); ?></p>
     
    9292endif;
    9393?>
    9494</body>
    95 </html>
    96  No newline at end of file
     95</html>