X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/449d082fcc4873c1f7d363a0d9f7409be7f6e77d..672d6bc6da735e745275ef7a86341dc1178da8d2:/wp-admin/upgrade.php diff --git a/wp-admin/upgrade.php b/wp-admin/upgrade.php index e26a92e3..7c093d1c 100644 --- a/wp-admin/upgrade.php +++ b/wp-admin/upgrade.php @@ -12,15 +12,17 @@ * @since unknown * @var bool */ -define('WP_INSTALLING', true); +define( 'WP_INSTALLING', true ); /** Load WordPress Bootstrap */ -require('../wp-load.php'); +require( '../wp-load.php' ); timer_start(); -require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); +require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); -if ( isset($_GET['step']) ) +delete_transient('update_core'); + +if ( isset( $_GET['step'] ) ) $step = $_GET['step']; else $step = 0; @@ -28,61 +30,59 @@ else // Do it. No output. if ( 'upgrade_db' === $step ) { wp_upgrade(); - die('0'); + die( '0' ); } $step = (int) $step; -@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); +@header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); ?> > - - <?php _e('WordPress › Upgrade'); ?> + + <?php _e( 'WordPress › Upgrade' ); ?>

WordPress

- + -

-

-

+

+

+

-

-

-

-

+

+

+

+

-

-

-

+

+

+