From ff712fcfbc67e427fc2cb43091b50aea1a0e5f43 Mon Sep 17 00:00:00 2001 From: Byron Watts Date: Fri, 6 May 2016 00:59:42 -0500 Subject: [PATCH] Update edd-software-license-manager.php Proposed solution to BUG Fatal error: call to undefined function edd_get_option() #7 --- edd-software-license-manager.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/edd-software-license-manager.php b/edd-software-license-manager.php index b72ce33..8cc5f59 100644 --- a/edd-software-license-manager.php +++ b/edd-software-license-manager.php @@ -26,6 +26,10 @@ exit; } +if( !class_exists( 'Easy Digital Downloads' ) ) { + return; +} + if( !class_exists( 'EDD_SLM' ) ) { /** @@ -171,4 +175,4 @@ function EDD_SLM_load() { add_action( 'plugins_loaded', 'EDD_SLM_load' ); -} // End if class_exists check \ No newline at end of file +} // End if class_exists check