Skip to content

Commit

Permalink
Fix bug if Gutenberg is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Alecaddd committed Apr 2, 2018
1 parent 424a972 commit 59e3a14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/Api/Gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ class Gutenberg
*/
public function register()
{
if ( ! function_exists( 'register_block_type' ) ) {
return;
}

add_action( 'init', array( $this, 'gutenberg_enqueue' ) );
}

Expand Down

0 comments on commit 59e3a14

Please sign in to comment.