X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/022dfbbbe3215917d84708eb09acca93b21ae9e0..7688c6ba71852cd89123b62b2d57683535e4702a:/wp-admin/upgrade.php diff --git a/wp-admin/upgrade.php b/wp-admin/upgrade.php index aa459514..1758d4c9 100644 --- a/wp-admin/upgrade.php +++ b/wp-admin/upgrade.php @@ -1,95 +1,56 @@ 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."); + require('../wp-config.php'); timer_start(); -require_once(ABSPATH . '/wp-admin/upgrade-functions.php'); +require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); -$step = $_GET['step']; -if (!$step) $step = 0; -header( 'Content-Type: text/html; charset=utf-8' ); +if (isset($_GET['step'])) + $step = (int) $_GET['step']; +else + $step = 0; +@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); ?> - +> - WordPress › Upgrade - - + + <?php _e('WordPress › Upgrade'); ?> +

WordPress

- + +

+

+

+ + -

-

+ $goback = clean_url(stripslashes(wp_get_referer())); +?> +

+

+

+

-

-

Have fun!"), $backto); ?>

+ if ( empty( $_GET['backto'] ) ) + $backto = __get_option('home') . '/'; + else + $backto = clean_url(stripslashes($_GET['backto'])); +?> +

+

+

+ break; +endswitch; +endif; +?> - + \ No newline at end of file