X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/wordpress.git/blobdiff_plain/cc7b1505cd9fafd87c3672f669e13e98b0c544f7..refs/tags/wordpress-3.1:/wp-admin/upgrade.php?backto=%3C%3Fphp%20echo%20%24goback;step=1 diff --git a/wp-admin/upgrade.php b/wp-admin/upgrade.php index 3c30d940..fc3698e4 100644 --- a/wp-admin/upgrade.php +++ b/wp-admin/upgrade.php @@ -1,107 +1,110 @@ db_version(); +$php_compat = version_compare( $php_version, $required_php_version, '>=' ); +$mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' ); + +@header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); ?> - +>
-Have fun!"), $backto); ?>
+ wp_upgrade(); + + $backto = !empty($_GET['backto']) ? stripslashes( urldecode( $_GET['backto'] ) ) : __get_option( 'home' ) . '/'; + $backto = esc_url_raw( $backto ); + $backto = wp_validate_redirect($backto, __get_option( 'home' ) . '/'); +?> + + + + break; +endswitch; +endif; +?>