From 3c41cdd0d0045777f13b518718b12bfdf50b984e Mon Sep 17 00:00:00 2001 From: Brandon Kraft Date: Tue, 15 Oct 2024 11:57:47 -0500 Subject: [PATCH] Dirty hack for tests --- projects/plugins/jetpack/class.jetpack-gutenberg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/plugins/jetpack/class.jetpack-gutenberg.php b/projects/plugins/jetpack/class.jetpack-gutenberg.php index 9b15eccc030fb..6e33561567298 100644 --- a/projects/plugins/jetpack/class.jetpack-gutenberg.php +++ b/projects/plugins/jetpack/class.jetpack-gutenberg.php @@ -297,7 +297,7 @@ public static function get_preset( $deprecated = null ) { * @return array A list of blocks: eg [ 'publicize', 'markdown' ] */ public static function get_jetpack_gutenberg_extensions_allowed_list() { - $preset_extensions_manifest = self::get_preset(); + $preset_extensions_manifest = ( defined( 'TESTING_IN_JETPACK' ) && TESTING_IN_JETPACK ) ? array() : self::get_preset(); $blocks_variation = self::blocks_variation(); return self::get_extensions_preset_for_variation( $preset_extensions_manifest, $blocks_variation );