upgrade_290

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

WordPress Version: 6.3

/**
 * Execute changes made in WordPress 2.9.
 *
 * @ignore
 * @since 2.9.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_290()
{
    global $wp_current_db_version;
    if ($wp_current_db_version < 11958) {
        /*
         * Previously, setting depth to 1 would redundantly disable threading,
         * but now 2 is the minimum depth to avoid confusion.
         */
        if (get_option('thread_comments_depth') == '1') {
            update_option('thread_comments_depth', 2);
            update_option('thread_comments', 0);
        }
    }
}

WordPress Version: 5.4

/**
 * Execute changes made in WordPress 2.9.
 *
 * @ignore
 * @since 2.9.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_290()
{
    global $wp_current_db_version;
    if ($wp_current_db_version < 11958) {
        // Previously, setting depth to 1 would redundantly disable threading,
        // but now 2 is the minimum depth to avoid confusion.
        if (get_option('thread_comments_depth') == '1') {
            update_option('thread_comments_depth', 2);
            update_option('thread_comments', 0);
        }
    }
}

WordPress Version: 5.3

/**
 * Execute changes made in WordPress 2.9.
 *
 * @ignore
 * @since 2.9.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_290()
{
    global $wp_current_db_version;
    if ($wp_current_db_version < 11958) {
        // Previously, setting depth to 1 would redundantly disable threading, but now 2 is the minimum depth to avoid confusion
        if (get_option('thread_comments_depth') == '1') {
            update_option('thread_comments_depth', 2);
            update_option('thread_comments', 0);
        }
    }
}

WordPress Version: 4.5

/**
 * Execute changes made in WordPress 2.9.
 *
 * @ignore
 * @since 2.9.0
 *
 * @global int $wp_current_db_version
 */
function upgrade_290()
{
    global $wp_current_db_version;
    if ($wp_current_db_version < 11958) {
        // Previously, setting depth to 1 would redundantly disable threading, but now 2 is the minimum depth to avoid confusion
        if (get_option('thread_comments_depth') == '1') {
            update_option('thread_comments_depth', 2);
            update_option('thread_comments', 0);
        }
    }
}

WordPress Version: 4.3

/**
 * Execute changes made in WordPress 2.9.
 *
 * @since 2.9.0
 *
 * @global int $wp_current_db_version
 */
function upgrade_290()
{
    global $wp_current_db_version;
    if ($wp_current_db_version < 11958) {
        // Previously, setting depth to 1 would redundantly disable threading, but now 2 is the minimum depth to avoid confusion
        if (get_option('thread_comments_depth') == '1') {
            update_option('thread_comments_depth', 2);
            update_option('thread_comments', 0);
        }
    }
}

WordPress Version: 3.7

/**
 * Execute changes made in WordPress 2.9.
 *
 * @since 2.9.0
 */
function upgrade_290()
{
    global $wp_current_db_version;
    if ($wp_current_db_version < 11958) {
        // Previously, setting depth to 1 would redundantly disable threading, but now 2 is the minimum depth to avoid confusion
        if (get_option('thread_comments_depth') == '1') {
            update_option('thread_comments_depth', 2);
            update_option('thread_comments', 0);
        }
    }
}