X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/177fd6fefd2e3d5a0ea6591c71d660cabdb3c1a4..refs/tags/wordpress-2.9:/wp-admin/upgrade.php diff --git a/wp-admin/upgrade.php b/wp-admin/upgrade.php index 67618d0a..4c27b605 100644 --- a/wp-admin/upgrade.php +++ b/wp-admin/upgrade.php @@ -1,66 +1,88 @@ 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 unknown + * @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_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; + +@header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); ?> > - - <?php _e('WordPress › Upgrade'); ?> - + + <?php _e( 'WordPress › Upgrade' ); ?> +

WordPress

- + -

-

-

+

+

+

-

-

-

-

+

+

+

+

-

-

-

+

+

+

@@ -70,4 +92,4 @@ endswitch; endif; ?> - \ No newline at end of file +