Skip to content

Commit

Permalink
fix: disable assets manager temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
mehul0810 committed Mar 23, 2019
1 parent 6eb428b commit 5516e2b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
18 changes: 9 additions & 9 deletions includes/admin/class.perform-admin-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,15 +443,15 @@ public function add_fields() {
);

// Enable Assets Manager.
$this->add_field(
"{$this->prefix}advanced",
array(
'id' => 'enable_assets_manager',
'type' => 'checkbox',
'name' => __( 'Enable Assets Manager', 'perform' ),
'desc' => __( 'Enables the Assets Manager which will provide you the ability to enable or disable CSS and JS files on per-page basis.', 'perform' ),
)
);
// $this->add_field(
// "{$this->prefix}advanced",
// array(
// 'id' => 'enable_assets_manager',
// 'type' => 'checkbox',
// 'name' => __( 'Enable Assets Manager', 'perform' ),
// 'desc' => __( 'Enables the Assets Manager which will provide you the ability to enable or disable CSS and JS files on per-page basis.', 'perform' ),
// )
// );

// DNS Prefetch.
$this->add_field(
Expand Down
16 changes: 9 additions & 7 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,17 +307,19 @@ function perform_load_modules_on_init() {
/**
* Load Assets Manager module to optimise assets on frontend of the WordPress site.
*
* @todo enable for 1.1.0
*
* @since 1.0.0
*/
$is_assets_manager_enabled = perform_get_option( 'enable_assets_manager', 'perform_advanced' );
if ( $is_assets_manager_enabled ) {
// $is_assets_manager_enabled = perform_get_option( 'enable_assets_manager', 'perform_advanced' );
// if ( $is_assets_manager_enabled ) {

// Load Module.
require_once PERFORM_PLUGIN_DIR . 'includes/modules/assets-manager/class-perform-assets-manager.php';
// // Load Module.
// require_once PERFORM_PLUGIN_DIR . 'includes/modules/assets-manager/class-perform-assets-manager.php';

// Init Module.
new Perform_Assets_Manager();
}
// // Init Module.
// new Perform_Assets_Manager();
// }

}

Expand Down

0 comments on commit 5516e2b

Please sign in to comment.