Fix the Gutenberg version check to use the correct version
[MAILPOET-6367]
This commit is contained in:
committed by
Oluwaseun Olorunsola
parent
5abca8d264
commit
37ceec2277
@@ -42,6 +42,9 @@ class Dependency_Check {
|
||||
* Checks if the WordPress version is supported.
|
||||
*/
|
||||
private function is_gutenberg_version_compatible(): bool {
|
||||
return version_compare( get_bloginfo( 'version' ), self::MIN_GUTENBERG_VERSION, '>=' );
|
||||
if ( defined( 'GUTENBERG_VERSION' ) ) {
|
||||
return version_compare( GUTENBERG_VERSION, self::MIN_GUTENBERG_VERSION, '>=' );
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user