Theme_Compatibility::is_compatibility_required()
Checks if theme needs a compatibility fix.
Return
(boolean)
Source
File: src/Tribe/Views/V2/Theme_Compatibility.php
public function is_compatibility_required() {
$template = strtolower( get_template() );
$stylesheet = strtolower( get_stylesheet() );
// Prevents empty stylesheet or template
if ( empty( $template ) || empty( $stylesheet ) ) {
return false;
}
if ( in_array( $template, $this->get_registered_themes() ) ) {
return true;
}
return false;
}
Changelog
| Version | Description |
|---|---|
| 4.9.3 | Introduced. |