X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/wordpress.git/blobdiff_plain/177fd6fefd2e3d5a0ea6591c71d660cabdb3c1a4..5aa86a9053fb0fa15846bb60aac2fb8fdfff524a:/wp-admin/upgrade.php
diff --git a/wp-admin/upgrade.php b/wp-admin/upgrade.php
index 67618d0a..4a2a0f42 100644
--- a/wp-admin/upgrade.php
+++ b/wp-admin/upgrade.php
@@ -1,66 +1,106 @@
wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php
file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.
Create a Configuration File"); +/** + * Upgrade WordPress Page. + * + * @package WordPress + * @subpackage Administration + */ + +/** + * We are upgrading WordPress. + * + * @since 1.5.1 + * @var bool + */ +define( 'WP_INSTALLING', true ); + +/** Load WordPress Bootstrap */ +require( '../wp-load.php' ); -require('../wp-config.php'); timer_start(); -require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); +require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); + +delete_site_transient('update_core'); -if (isset($_GET['step'])) - $step = (int) $_GET['step']; +if ( isset( $_GET['step'] ) ) + $step = $_GET['step']; else $step = 0; -@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); + +// Do it. No output. +if ( 'upgrade_db' === $step ) { + wp_upgrade(); + die( '0' ); +} + +$step = (int) $step; + +$php_version = phpversion(); +$mysql_version = $wpdb->db_version(); +$php_compat = version_compare( $php_version, $required_php_version, '>=' ); +if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) + $mysql_compat = true; +else + $mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ); + +@header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); ?> - + >
- -