Skip to content

Commit

Permalink
Fix an issue that prevented the admin dashboard from opening when woo…
Browse files Browse the repository at this point in the history
…-commerce was not installed or active
  • Loading branch information
michelve committed Dec 19, 2019
1 parent 22a87ea commit 69c37ce
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions includes/slm-plugin-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,25 +96,20 @@ function slm_get_license($lic_key_prefix = ''){

// Third Party Support
if (null !== SLM_Helper_Class::slm_get_option('slm_woo') && SLM_Helper_Class::slm_get_option('slm_woo') == 1) {

/**
* Check if WooCommerce is activated
*/
// WordPress Plugin :: wc-software-license-manager

if( is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
require_once(SLM_PUBLIC . 'slm-add-menu-frontend.php');
require_once( SLM_WOO . 'includes/wc-slm.php');

// support for meta boxes
require_once( SLM_WOO . 'includes/slm-meta-boxes.php');
}


}



if (null !== SLM_Helper_Class::slm_get_option('slm_wpestores') && SLM_Helper_Class::slm_get_option('slm_wpestores') == 1) {
// wpestores PLugin Integration
require_once( SLM_ADMIN . 'includes/wpestores/slm-wpestores.php');
Expand Down

0 comments on commit 69c37ce

Please sign in to comment.