diff --git a/wp-includes/load.php b/wp-includes/load.php index 5a251af21e..3b0b89af8b 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -768,23 +768,23 @@ function wp_start_object_cache() { * @access private */ function wp_not_installed() { - if ( is_multisite() ) { - if ( ! is_blog_installed() && ! wp_installing() ) { - nocache_headers(); - - wp_die( __( 'The site you have requested is not installed properly. Please contact the system administrator.' ) ); - } - } elseif ( ! is_blog_installed() && ! wp_installing() ) { - nocache_headers(); - - require ABSPATH . WPINC . '/kses.php'; - require ABSPATH . WPINC . '/pluggable.php'; - - $link = wp_guess_url() . '/wp-admin/install.php'; - - wp_redirect( $link ); - die(); + if ( is_blog_installed() || wp_installing() ) { + return; } + + nocache_headers(); + + if ( is_multisite() ) { + wp_die( __( 'The site you have requested is not installed properly. Please contact the system administrator.' ) ); + } + + require ABSPATH . WPINC . '/kses.php'; + require ABSPATH . WPINC . '/pluggable.php'; + + $link = wp_guess_url() . '/wp-admin/install.php'; + + wp_redirect( $link ); + die(); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index e8650ae81e..5446caef32 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53914'; +$wp_version = '6.1-alpha-53915'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.