X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/ff81ee6e8304a1982a3ec4f5b134764a29d502cf..0f29eadd474473203a1182f52af1aa82721cecbd:/wp-admin/upgrade.php diff --git a/wp-admin/upgrade.php b/wp-admin/upgrade.php index 53eb1549..aa459514 100644 --- a/wp-admin/upgrade.php +++ b/wp-admin/upgrade.php @@ -67,7 +67,7 @@ text-align: center; border-top: 1px solid #ccc; padding-top: 1em; font-style: it switch($step) { case 0: - $goback = wp_specialchars($_SERVER['HTTP_REFERER'], 1); + $goback = clean_url(stripslashes(wp_get_referer())); ?>

@@ -75,15 +75,18 @@ switch($step) { break; case 1: - wp_cache_flush(); - make_db_current_silent(); - upgrade_all(); - wp_cache_flush(); + $wp_current_db_version = __get_option('db_version'); + if ( $wp_db_version != $wp_current_db_version ) { + wp_cache_flush(); + make_db_current_silent(); + upgrade_all(); + wp_cache_flush(); + } if ( empty( $_GET['backto'] ) ) $backto = __get_option('home'); else - $backto = wp_specialchars( $_GET['backto'] , 1 ); + $backto = clean_url(stripslashes($_GET['backto'])); ?>

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