HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/triad-infosec/wp-content/plugins/the-events-calendar/src/functions/utils/install.php
<?php
use Tribe__Events__Main as TEC;

/**
 * Verifies that the current install of The Events Calendar is not
 * a pre-existing setup, and trigger the activation of View V2.
 *
 * @since  4.9.13
 *
 * @return  bool  When to activate the View V2 or not.
 */
function tribe_events_is_new_install() {
	$previous_versions     = array_filter( (array) tribe_get_option( 'previous_ecp_versions', [] ) );
	usort( $previous_versions, 'version_compare' );

	$has_previous_versions = ! empty( $previous_versions );

	return ! $has_previous_versions;
}