Fix the Gutenberg version check to use the correct version

[MAILPOET-6367]
This commit is contained in:
Rostislav Wolny
2025-01-06 17:18:05 +01:00
committed by Oluwaseun Olorunsola
parent 5abca8d264
commit 37ceec2277

View File

@@ -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;
}
}