Skip to content

Commit 07f33e0

Browse files
committed
Declare the main plugin and logger instance variables global. See #61
1 parent 6511397 commit 07f33e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gistpress.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
if ( ! class_exists( 'GistPress' ) ) {
2828
require( plugin_dir_path( __FILE__ ) . 'includes/class-gistpress.php' );
2929
}
30-
$gistpress = new GistPress;
30+
$GLOBALS['gistpress'] = new GistPress;
3131

3232
// Instantiate logging class.
3333
if ( ! class_exists( 'GistPress_Log' ) ) {
3434
require( plugin_dir_path( __FILE__ ) . 'includes/class-gistpress-log.php' );
3535
}
36-
$gistpress_logger = new GistPress_Log;
36+
$GLOBALS['gistpress_logger'] = new GistPress_Log;
3737

3838
/**
3939
* Support localization for plugin.

0 commit comments

Comments
 (0)