X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/5964d2279dc52bdfe105f9bfa17e04337d47a3fa..245e789b234afa4525862e7a6e5e3c2e7a52ef20:/wp-admin/upgrade.php diff --git a/wp-admin/upgrade.php b/wp-admin/upgrade.php index 9a632ef0..10c04131 100644 --- a/wp-admin/upgrade.php +++ b/wp-admin/upgrade.php @@ -15,7 +15,7 @@ define( 'WP_INSTALLING', true ); /** Load WordPress Bootstrap */ -require( '../wp-load.php' ); +require( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); nocache_headers(); @@ -50,6 +50,7 @@ else > + <?php _e( 'WordPress › Update' ); ?> -

+

@@ -77,7 +78,7 @@ else @@ -90,7 +91,7 @@ switch ( $step ) : 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' ) . '/'); ?>