Skip to content

Commit

Permalink
Prevent fatal error when running PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Hermans authored Apr 17, 2019
1 parent 843fb1c commit 402d26f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions init.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

add_action('init', function(){
new \LL\Heartbeat\Setup();
});
if ( function_exists( 'add_action' ) ) {
add_action('init', function(){
new \LL\Heartbeat\Setup();
});
}

0 comments on commit 402d26f

Please sign in to comment.