Skip to content

Commit

Permalink
Update class-rest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o committed Mar 6, 2024
1 parent 9960924 commit d286fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/class-rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function get_block( $request ) {
$block_result = lazyblocks()->blocks()->render_callback( $block_attributes, null, $block_context, $block );

if ( isset( $block_result ) && null !== $block_result ) {
if ( $this->is_valid_html( $block_result ) ) {
if ( ! $this->is_valid_html( $block_result ) ) {
return $this->error( 'lazy_block_invalid', esc_html__( 'Please ensure that the output is a valid HTML structure.', 'lazy-blocks' ) );
}

Expand Down

0 comments on commit d286fc1

Please sign in to comment.