diff --git a/includes/plugin-debug.php b/includes/plugin-debug.php index 288cbac0..1b17d12b 100644 --- a/includes/plugin-debug.php +++ b/includes/plugin-debug.php @@ -8,9 +8,6 @@ * Author URI: https://github.com/matthewjackowski/ * License: GNU General Public License 2.0 (GPL) http://www.gnu.org/licenses/gpl.html */ -?> - - \ No newline at end of file +} \ No newline at end of file diff --git a/transifex-live-integration.php b/transifex-live-integration.php index 59b7b310..50edb700 100755 --- a/transifex-live-integration.php +++ b/transifex-live-integration.php @@ -21,6 +21,9 @@ exit; } +register_activation_hook( __FILE__, [ 'Transifex_Live_Integration', 'activation_hook' ] ); +register_deactivation_hook( __FILE__, [ 'Transifex_Live_Integration', 'deactivation_hook' ] ); + /** * Define constants * Check if constant has already been set to allow for overrides coming from wp-config @@ -58,9 +61,6 @@ } include_once TRANSIFEX_LIVE_INTEGRATION_DIRECTORY_BASE . '/includes/plugin-debug.php'; - -register_activation_hook( __FILE__, [ 'Transifex_Live_Integration', 'activation_hook' ] ); -register_deactivation_hook( __FILE__, [ 'Transifex_Live_Integration', 'deactivation_hook' ] ); $debug = new Plugin_Debug(); $version = '1.0.3'; @@ -120,16 +120,14 @@ static function admin_menu_hook() { * Plugin deactivation stub */ static function deactivation_hook() { - Plugin_Debug::logTrace(); } /** * Plugin activation stub */ static function activation_hook() { - Plugin_Debug::logTrace(); } } -Transifex_Live_Integration::do_plugin( is_admin(), $version ); +Transifex_Live_Integration::do_plugin( is_admin(), $version ); \ No newline at end of file