Tribe__Events__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::supportedVersion( 'wordpress' ) && self::supportedVersion( 'php' ) ) {
return;
}
add_action( 'admin_notices', array( $this, 'notSupportedError' ) );
// if we get in here, we need to reset the global common to ET's version so that we don't cause a fatal
$this->reset_common_lib_info_back_to_et();
$this->should_prevent_autoload_init = true;
}
Changelog
| Version | Description |
|---|---|
| 4.9.3.2 | Introduced. |