Skip to content

Commit 59e3a14

Browse files
committed
Fix bug if Gutenberg is not installed
1 parent 424a972 commit 59e3a14

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inc/Api/Gutenberg.php

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ class Gutenberg
1818
*/
1919
public function register()
2020
{
21+
if ( ! function_exists( 'register_block_type' ) ) {
22+
return;
23+
}
24+
2125
add_action( 'init', array( $this, 'gutenberg_enqueue' ) );
2226
}
2327

0 commit comments

Comments
 (0)