]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/upgrade.php
Wordpress 3.6
[autoinstalls/wordpress.git] / wp-admin / upgrade.php
index 4a2a0f42589ddf58e609ce884974bce99c6ce2cf..b04287735d6611cb4b14f263c882bf4944fa092e 100644 (file)
@@ -17,6 +17,8 @@ define( 'WP_INSTALLING', true );
 /** Load WordPress Bootstrap */
 require( '../wp-load.php' );
 
+nocache_headers();
+
 timer_start();
 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
 
@@ -27,7 +29,7 @@ if ( isset( $_GET['step'] ) )
 else
        $step = 0;
 
-// Do it.  No output.
+// Do it. No output.
 if ( 'upgrade_db' === $step ) {
        wp_upgrade();
        die( '0' );
@@ -55,14 +57,14 @@ else
        wp_admin_css( 'ie', true );
        ?>
 </head>
-<body>
-<h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1>
+<body class="wp-core-ui">
+<h1 id="logo"><a href="<?php echo esc_url( __( 'http://wordpress.org/' ) ); ?>"><?php _e( 'WordPress' ); ?></a></h1>
 
 <?php if ( get_option( 'db_version' ) == $wp_db_version || !is_blog_installed() ) : ?>
 
 <h2><?php _e( 'No Update Required' ); ?></h2>
 <p><?php _e( 'Your WordPress database is already up-to-date!' ); ?></p>
-<p class="step"><a class="button" href="<?php echo get_option( 'home' ); ?>/"><?php _e( 'Continue' ); ?></a></p>
+<p class="step"><a class="button button-large" href="<?php echo get_option( 'home' ); ?>/"><?php _e( 'Continue' ); ?></a></p>
 
 <?php elseif ( !$php_compat || !$mysql_compat ) :
        if ( !$mysql_compat && !$php_compat )
@@ -75,26 +77,26 @@ else
 <?php else :
 switch ( $step ) :
        case 0:
-               $goback = stripslashes( wp_get_referer() );
+               $goback = wp_get_referer();
                $goback = esc_url_raw( $goback );
                $goback = urlencode( $goback );
 ?>
 <h2><?php _e( 'Database Update Required' ); ?></h2>
 <p><?php _e( 'WordPress has been updated! Before we send you on your way, we have to update your database to the newest version.' ); ?></p>
 <p><?php _e( 'The update process may take a little while, so please be patient.' ); ?></p>
-<p class="step"><a class="button" href="upgrade.php?step=1&amp;backto=<?php echo $goback; ?>"><?php _e( 'Update WordPress Database' ); ?></a></p>
+<p class="step"><a class="button button-large" href="upgrade.php?step=1&amp;backto=<?php echo $goback; ?>"><?php _e( 'Update WordPress Database' ); ?></a></p>
 <?php
                break;
        case 1:
                wp_upgrade();
 
-                       $backto = !empty($_GET['backto']) ? stripslashes( urldecode( $_GET['backto'] ) ) :  __get_option( 'home' ) . '/';
+                       $backto = !empty($_GET['backto']) ? wp_unslash( urldecode( $_GET['backto'] ) ) : __get_option( 'home' ) . '/';
                        $backto = esc_url( $backto );
                        $backto = wp_validate_redirect($backto, __get_option( 'home' ) . '/');
 ?>
 <h2><?php _e( 'Update Complete' ); ?></h2>
        <p><?php _e( 'Your WordPress database has been successfully updated!' ); ?></p>
-       <p class="step"><a class="button" href="<?php echo $backto; ?>"><?php _e( 'Continue' ); ?></a></p>
+       <p class="step"><a class="button button-large" href="<?php echo $backto; ?>"><?php _e( 'Continue' ); ?></a></p>
 
 <!--
 <pre>