Update config for defines
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 22 Aug 2019 19:09:19 +0000 (15:09 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 22 Aug 2019 19:09:19 +0000 (15:09 -0400)
Define these to false.
To help with activation of plugin and php notices or errors.

config.php

index 23f4a38..84d2a0c 100644 (file)
@@ -45,6 +45,13 @@ if ($glmMembersDatabaseDbVersion) {
     define('GLM_MEMBERS_PLUGIN_FRONT_DEBUG_VERBOSE', $settings['front_debug_verbose']);
     define('GLM_MEMBERS_PLUGIN_DEBUG', $settings['admin_debug'] || $settings['front_debug']);
     define('GLM_MEMBERS_PLUGIN_DEBUG_VERBOSE', $settings['admin_debug_verbose'] || $settings['front_debug_verbose']);
+} else {
+    define('GLM_MEMBERS_PLUGIN_ADMIN_DEBUG', false);
+    define('GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE', false);
+    define('GLM_MEMBERS_PLUGIN_FRONT_DEBUG', false);
+    define('GLM_MEMBERS_PLUGIN_FRONT_DEBUG_VERBOSE', false);
+    define('GLM_MEMBERS_PLUGIN_DEBUG', false);
+    define('GLM_MEMBERS_PLUGIN_DEBUG_VERBOSE', false);
 }
 
 // Check for config value replacements in the current theme