From e393eedb1f3a77e9246a84dea330206559f57665 Mon Sep 17 00:00:00 2001 From: Nikita Date: Fri, 4 Oct 2024 15:38:47 +0300 Subject: [PATCH] Update class-blocks.php --- classes/class-blocks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/class-blocks.php b/classes/class-blocks.php index 778a7be8..2a309f06 100644 --- a/classes/class-blocks.php +++ b/classes/class-blocks.php @@ -1594,11 +1594,11 @@ public function render_callback( $attributes, $content = null, $context = 'front 'class' => '', ); - if ( $attributes['blockUniqueClass'] ) { + if ( isset( $attributes['blockUniqueClass'] ) && $attributes['blockUniqueClass'] ) { $array_atts['class'] .= $attributes['blockUniqueClass']; } - if ( $attributes['align'] ) { + if ( isset( $attributes['align'] ) && $attributes['align'] ) { $array_atts['class'] .= ' align' . $attributes['align']; }