upgrade_400

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

WordPress Version: 5.5

/**
 * Execute changes made in WordPress 4.0.0.
 *
 * @ignore
 * @since 4.0.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_400()
{
    global $wp_current_db_version;
    if ($wp_current_db_version < 29630) {
        if (!is_multisite() && false === get_option('WPLANG')) {
            if (defined('WPLANG') && '' !== WPLANG && in_array(WPLANG, get_available_languages(), true)) {
                update_option('WPLANG', WPLANG);
            } else {
                update_option('WPLANG', '');
            }
        }
    }
}

WordPress Version: 5.3

/**
 * Execute changes made in WordPress 4.0.0.
 *
 * @ignore
 * @since 4.0.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_400()
{
    global $wp_current_db_version;
    if ($wp_current_db_version < 29630) {
        if (!is_multisite() && false === get_option('WPLANG')) {
            if (defined('WPLANG') && '' !== WPLANG && in_array(WPLANG, get_available_languages())) {
                update_option('WPLANG', WPLANG);
            } else {
                update_option('WPLANG', '');
            }
        }
    }
}

WordPress Version: 4.5

/**
 * Execute changes made in WordPress 4.0.0.
 *
 * @ignore
 * @since 4.0.0
 *
 * @global int $wp_current_db_version
 */
function upgrade_400()
{
    global $wp_current_db_version;
    if ($wp_current_db_version < 29630) {
        if (!is_multisite() && false === get_option('WPLANG')) {
            if (defined('WPLANG') && '' !== WPLANG && in_array(WPLANG, get_available_languages())) {
                update_option('WPLANG', WPLANG);
            } else {
                update_option('WPLANG', '');
            }
        }
    }
}

WordPress Version: 4.3

/**
 * Execute changes made in WordPress 4.0.0.
 *
 * @since 4.0.0
 *
 * @global int $wp_current_db_version
 */
function upgrade_400()
{
    global $wp_current_db_version;
    if ($wp_current_db_version < 29630) {
        if (!is_multisite() && false === get_option('WPLANG')) {
            if (defined('WPLANG') && '' !== WPLANG && in_array(WPLANG, get_available_languages())) {
                update_option('WPLANG', WPLANG);
            } else {
                update_option('WPLANG', '');
            }
        }
    }
}

WordPress Version: 4.0

/**
 * Execute changes made in WordPress 4.0.0.
 *
 * @since 4.0.0
 */
function upgrade_400()
{
    global $wp_current_db_version;
    if ($wp_current_db_version < 29630) {
        if (!is_multisite() && false === get_option('WPLANG')) {
            if (defined('WPLANG') && '' !== WPLANG && in_array(WPLANG, get_available_languages())) {
                update_option('WPLANG', WPLANG);
            } else {
                update_option('WPLANG', '');
            }
        }
    }
}