From: Chuck Scott Date: Thu, 27 Sep 2018 17:42:35 +0000 (-0400) Subject: Cleaned up glmMembersConfigArraySetup() in glmPluginSupport.php. X-Git-Tag: v2.10.45^2~8 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=2cafed54c48f5f8d69f38092e7ccde89e567f393;p=WP-Plugins%2Fglm-member-db.git Cleaned up glmMembersConfigArraySetup() in glmPluginSupport.php. This function is now useable. --- diff --git a/classes/glmPluginSupport.php b/classes/glmPluginSupport.php old mode 100644 new mode 100755 index 3a9f6630..42d1e276 --- a/classes/glmPluginSupport.php +++ b/classes/glmPluginSupport.php @@ -65,7 +65,7 @@ class GlmPluginSupport } - /* + /*echo 1; * Check if this is a second call to the activation hook by WordPress to activate this plugin. * * (Yea, I know that's stupid behavior, but there's nothing I can do about it.) @@ -168,7 +168,7 @@ return; // Off for now ** Need to make this switchable in management if (isset($gitParts[2])) { $gitBranch[$a['slug']]['branch'] = $gitParts[2]; } - + echo 1; // [3] should be name of feature if (isset($gitParts[3])) { $gitBranch[$a['slug']]['feature'] = $gitParts[3]; @@ -339,7 +339,7 @@ function glmMembersConfigArraySetup( $configTable, $configNumbTable = false, $co if (!is_array($configTable) || count($configTable) == 0) { return false; } -echo 1; + // Build base array $conf = array(); foreach ($configTable as $key=>$descr) { @@ -350,7 +350,7 @@ echo 1; 'selected' => false ); } -echo 2; + // If name->number array add that data if (is_array($configNumbTable) && count($configNumbTable) > 0) { foreach ($configNumbTable as $name=>$key) { @@ -368,7 +368,7 @@ echo 2; } } } -echo 3; + return $conf; }