Skip to content

Commit

Permalink
Update class-blocks.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o authored Oct 4, 2024
1 parent 3b62de9 commit e393eed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/class-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}

Expand Down

0 comments on commit e393eed

Please sign in to comment.