We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 453dbc0 commit 4417f02Copy full SHA for 4417f02
gistpress.php
@@ -60,8 +60,10 @@ function gistpress_i18n() {
60
*/
61
function gistpress_init() {
62
global $gistpress, $gistpress_logger;
63
- $gistpress->set_logger( $gistpress_logger );
64
- $gistpress->run();
+ if ( $gistpress instanceof GistPress ) {
+ $gistpress->set_logger( $gistpress_logger );
65
+ $gistpress->run();
66
+ }
67
}
68
add_action( 'init', 'gistpress_init' );
69
0 commit comments