Tribe__Tickets__Main::maybe_bail_if_invalid_wp_or_php()

Prevents bootstrapping and autoloading if the version of WP or PHP are too old


Source #

File: src/Tribe/Main.php

	public function maybe_bail_if_invalid_wp_or_php() {
		if ( self::supported_version( 'wordpress' ) && self::supported_version( 'php' ) ) {
			return;
		}

		add_action( 'admin_notices', array( $this, 'not_supported_error' ) );
		add_action( 'network_admin_notices', array( $this, 'not_supported_error' ) );

		// if we get in here, we need to reset the global common to TEC's version so that we don't cause a fatal
		$this->reset_common_lib_info_back_to_tec();

		$this->should_prevent_autoload_init = true;
	}

Top ↑

Changelog #

Changelog
Version Description
4.10.6.2 Introduced.