upgrade_640

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

WordPress Version: 6.4

/**
 * Executes changes made in WordPress 6.4.0.
 *
 * @ignore
 * @since 6.4.0
 *
 * @global int $wp_current_db_version The old (current) database version.
 */
function upgrade_640()
{
    global $wp_current_db_version;
    if ($wp_current_db_version < 56657) {
        // Enable attachment pages.
        update_option('wp_attachment_pages_enabled', 1);
        // Remove the wp_https_detection cron. Https status is checked directly in an async Site Health check.
        $scheduled = wp_get_scheduled_event('wp_https_detection');
        if ($scheduled) {
            wp_clear_scheduled_hook('wp_https_detection');
        }
    }
}