2 define('WP_INSTALLING', true);
3 if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. Double check that you updated wp-config-sample.php with the proper database connection information and renamed it to wp-config.php.");
4 require('../wp-config.php');
6 require_once(ABSPATH . '/wp-admin/upgrade-functions.php');
10 header( 'Content-Type: text/html; charset=utf-8' );
12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
13 <html xmlns="http://www.w3.org/1999/xhtml">
15 <title>WordPress › Upgrade</title>
16 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
17 <style media="screen" type="text/css">
25 font-family: Georgia, "Times New Roman", Times, serif;
47 padding: 5px 5px 5px 20px;
52 .step a, .step input {
59 text-align: center; border-top: 1px solid #ccc; padding-top: 1em; font-style: italic;
65 <h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1>
70 $goback = clean_url(stripslashes(wp_get_referer()));
72 <p><?php _e('This file upgrades you from any previous version of WordPress to the latest. It may take a while though, so be patient.'); ?></p>
73 <h2 class="step"><a href="upgrade.php?step=1&backto=<?php echo $goback; ?>"><?php _e('Upgrade WordPress »'); ?></a></h2>
78 $wp_current_db_version = __get_option('db_version');
79 if ( $wp_db_version != $wp_current_db_version ) {
81 make_db_current_silent();
86 if ( empty( $_GET['backto'] ) )
87 $backto = __get_option('home');
89 $backto = clean_url(stripslashes($_GET['backto']));
91 <h2><?php _e('Step 1'); ?></h2>
92 <p><?php printf(__("There's actually only one step. So if you see this, you're done. <a href='%s'>Have fun</a>!"), $backto); ?></p>
96 <?php printf(__('%s queries'), $wpdb->num_queries); ?>
98 <?php printf(__('%s seconds'), timer_stop(0)); ?>