Skip to content

Commit

Permalink
Merge pull request #16 from matthewjackowski/devel
Browse files Browse the repository at this point in the history
Minor formatting that is causing some error in Wordpress
  • Loading branch information
Matthew Jackowski committed Sep 29, 2015
2 parents 168979a + 3964f34 commit a0f966c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
6 changes: 1 addition & 5 deletions includes/plugin-debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
?>

<?php

class Plugin_Debug {

Expand Down Expand Up @@ -110,5 +107,4 @@ static function printLogCallback( $value, $key ) {
}
}

}
?>
}
10 changes: 4 additions & 6 deletions transifex-live-integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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';

Expand Down Expand Up @@ -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 );

0 comments on commit a0f966c

Please sign in to comment.