This commit is contained in:
Hanson.xyz Dev
2026-01-04 17:50:08 -06:00
parent 7e45ce0756
commit acc8ac87a0
4131 changed files with 232562 additions and 250244 deletions
+6 -5
View File
@@ -12,6 +12,11 @@ require_once __DIR__ . '/admin.php';
require_once ABSPATH . WPINC . '/http.php';
/**
* @global int $wp_db_version WordPress database version.
*/
global $wp_db_version;
// Used in the HTML title tag.
$title = __( 'Upgrade Network' );
$parent_file = 'upgrade.php';
@@ -49,10 +54,6 @@ switch ( $action ) {
$n = ( isset( $_GET['n'] ) ) ? (int) $_GET['n'] : 0;
if ( $n < 5 ) {
/**
* @global int $wp_db_version WordPress database version.
*/
global $wp_db_version;
update_site_option( 'wpmu_upgrade_site', $wp_db_version );
}
@@ -135,7 +136,7 @@ switch ( $action ) {
break;
case 'show':
default:
if ( (int) get_site_option( 'wpmu_upgrade_site' ) !== $GLOBALS['wp_db_version'] ) :
if ( (int) get_site_option( 'wpmu_upgrade_site' ) !== $wp_db_version ) :
?>
<h2><?php _e( 'Database Update Required' ); ?></h2>
<p><?php _e( 'WordPress has been updated! Next and final step is to individually upgrade the sites in your network.' ); ?></p>