Skip to content

Commit

Permalink
Plugin control kinda works ?
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallinanga committed Jul 12, 2015
1 parent 9adaf7e commit bbc76c9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions includes/class-nanga.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ private function load_dependencies() {
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-nanga-public.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-nanga-cache.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-nanga-shortcodes.php';
//require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-nanga-plugin-control.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-nanga-cron.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-nanga-updates.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-nanga-plugin-control.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/cpt/extended-cpts.php';
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/cpt/extended-taxos.php';
$this->loader = new Nanga_Loader();
Expand Down Expand Up @@ -190,11 +190,9 @@ public function get_loader() {
}

private function plugin_control() {
//$plugin_control = new Nanga_Plugin_Control( array( 'debug-bar-timber/debug-bar-timber.php' ) );
$plugin_control = new Nanga_Plugin_Control();
if ( defined( 'WP_ENV' ) && 'development' === WP_ENV ) {
$plugin_control->disable( 'google-analytics-for-wordpress/googleanalytics.php' );
$plugin_control->disable( 'underconstruction/underConstruction.php' );
$plugin_control->disable( 'jigsaw/jigsaw.php' );
$plugin_control->disable( 'w3-total-cache/w3-total-cache.php' );
}
if ( defined( 'WP_ENV' ) && 'development' !== WP_ENV ) {
Expand Down

0 comments on commit bbc76c9

Please sign in to comment.