diff --git a/theme/inc/blocks/class-blocks.php b/theme/inc/blocks/class-blocks.php index 2c19b27a8..bbc714dd0 100644 --- a/theme/inc/blocks/class-blocks.php +++ b/theme/inc/blocks/class-blocks.php @@ -124,7 +124,7 @@ public static function render( $attributes, $content, $block ) { } // Remove this once server side context is available via gutenberg. - if ( ! empty( $block->block_type->uses_context ) && empty( $block->context ) ) { + if ( ! empty( $block->block_type->uses_context ) && ! empty( $_GET['materialParamContext'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended foreach ( $block->block_type->uses_context as $context ) { if ( empty( $_GET['materialParamContext'][ $context ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended continue;