diff --git a/gistpress.php b/gistpress.php index ecb4382..168f23d 100644 --- a/gistpress.php +++ b/gistpress.php @@ -60,8 +60,10 @@ function gistpress_i18n() { */ function gistpress_init() { global $gistpress, $gistpress_logger; - $gistpress->set_logger( $gistpress_logger ); - $gistpress->run(); + if ( $gistpress instanceof GistPress ) { + $gistpress->set_logger( $gistpress_logger ); + $gistpress->run(); + } } add_action( 'init', 'gistpress_init' );