Skip to content

Commit 2d20653

Browse files
notice while saving post in gutenberg
1 parent bed3329 commit 2d20653

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

classes/Visualizer/Gutenberg/Block.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ public function register_block_type() {
151151
* Gutenberg Block Callback Function
152152
*/
153153
public function gutenberg_block_callback( $atts ) {
154+
// no id, no fun.
155+
if ( ! isset( $atts['id'] ) ) {
156+
return '';
157+
}
158+
154159
$atts = shortcode_atts(
155160
array(
156161
'id' => false,

0 commit comments

Comments
 (0)