diff --git a/packages/php/email-editor/src/Engine/class-dependency-check.php b/packages/php/email-editor/src/Engine/class-dependency-check.php index 14a1a788c1..59d305f6f2 100644 --- a/packages/php/email-editor/src/Engine/class-dependency-check.php +++ b/packages/php/email-editor/src/Engine/class-dependency-check.php @@ -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; } }