From 5516e2b433149c93d422541bc3929e0dfdc5a991 Mon Sep 17 00:00:00 2001 From: mehul0810 Date: Sat, 23 Mar 2019 19:02:41 +0530 Subject: [PATCH] fix: disable assets manager temporarily --- .../admin/class.perform-admin-settings.php | 18 +++++++++--------- includes/functions.php | 16 +++++++++------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/includes/admin/class.perform-admin-settings.php b/includes/admin/class.perform-admin-settings.php index 648aca3..cda8046 100644 --- a/includes/admin/class.perform-admin-settings.php +++ b/includes/admin/class.perform-admin-settings.php @@ -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( diff --git a/includes/functions.php b/includes/functions.php index c0ad9ee..55170cb 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -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(); + // } }