wp_not_installed

The timeline below displays how wordpress function wp_not_installed has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.3

/**
 * Redirects to the installer if WordPress is not installed.
 *
 * Dies with an error message when Multisite is enabled.
 *
 * @since 3.0.0
 * @access private
 */
function wp_not_installed()
{
    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;
}

WordPress Version: 6.1

/**
 * Redirect to the installer if WordPress is not installed.
 *
 * Dies with an error message when Multisite is enabled.
 *
 * @since 3.0.0
 * @access private
 */
function wp_not_installed()
{
    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;
}

WordPress Version: 5.1

/**
 * Redirect to the installer if WordPress is not installed.
 *
 * Dies with an error message when Multisite is enabled.
 *
 * @since 3.0.0
 * @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;
    }
}

WordPress Version: 4.4

/**
 * Redirect to the installer if WordPress is not installed.
 *
 * Dies with an error message when Multisite is enabled.
 *
 * @since 3.0.0
 * @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';
        require ABSPATH . WPINC . '/formatting.php';
        $link = wp_guess_url() . '/wp-admin/install.php';
        wp_redirect($link);
        die;
    }
}

WordPress Version: 4.1

/**
 * Redirect to the installer if WordPress is not installed.
 *
 * Dies with an error message when Multisite is enabled.
 *
 * @since 3.0.0
 * @access private
 */
function wp_not_installed()
{
    if (is_multisite()) {
        if (!is_blog_installed() && !defined('WP_INSTALLING')) {
            nocache_headers();
            wp_die(__('The site you have requested is not installed properly. Please contact the system administrator.'));
        }
    } elseif (!is_blog_installed() && !defined('WP_INSTALLING')) {
        nocache_headers();
        require ABSPATH . WPINC . '/kses.php';
        require ABSPATH . WPINC . '/pluggable.php';
        require ABSPATH . WPINC . '/formatting.php';
        $link = wp_guess_url() . '/wp-admin/install.php';
        wp_redirect($link);
        die;
    }
}

WordPress Version: 4.0

/**
 * Redirect to the installer if WordPress is not installed.
 *
 * Dies with an error message when Multisite is enabled.
 *
 * @since 3.0.0
 * @access private
 */
function wp_not_installed()
{
    if (is_multisite()) {
        if (!is_blog_installed() && !defined('WP_INSTALLING')) {
            nocache_headers();
            wp_die(__('The site you have requested is not installed properly. Please contact the system administrator.'));
        }
    } elseif (!is_blog_installed() && false === strpos($_SERVER['PHP_SELF'], 'install.php') && !defined('WP_INSTALLING')) {
        nocache_headers();
        require ABSPATH . WPINC . '/kses.php';
        require ABSPATH . WPINC . '/pluggable.php';
        require ABSPATH . WPINC . '/formatting.php';
        $link = wp_guess_url() . '/wp-admin/install.php';
        wp_redirect($link);
        die;
    }
}

WordPress Version: 3.7

/**
 * Redirects to the installer if WordPress is not installed.
 *
 * Dies with an error message when multisite is enabled.
 *
 * @access private
 * @since 3.0.0
 */
function wp_not_installed()
{
    if (is_multisite()) {
        if (!is_blog_installed() && !defined('WP_INSTALLING')) {
            wp_die(__('The site you have requested is not installed properly. Please contact the system administrator.'));
        }
    } elseif (!is_blog_installed() && false === strpos($_SERVER['PHP_SELF'], 'install.php') && !defined('WP_INSTALLING')) {
        require ABSPATH . WPINC . '/kses.php';
        require ABSPATH . WPINC . '/pluggable.php';
        require ABSPATH . WPINC . '/formatting.php';
        $link = wp_guess_url() . '/wp-admin/install.php';
        wp_redirect($link);
        die;
    }
}