Remove some no longer useful test echos for the new dashboard
authorLaury GvR <laury@gaslightmedia.com>
Thu, 25 Oct 2018 17:50:53 +0000 (13:50 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 25 Oct 2018 17:50:53 +0000 (13:50 -0400)
models/admin/newDashboard/index.php

index 8dd34b5..c2b4d2b 100644 (file)
@@ -193,7 +193,6 @@ class GlmMembersAdmin_newDashboard_index extends GlmDataMembers
         require_once GLM_MEMBERS_PLUGIN_CLASS_PATH . '/data/dataMemberInfo.php';
         $MemberInfo        = new GlmDataMemberInfo($this->wpdb, $this->config);
         $hideArchived      = " && T.status != ".$this->config['status_numb']['Archived'];
-        //$memberInfoRecords = $MemberInfo->getList( "T.member = $memberID" . $hideArchived, 'T.status' );
 
         // Check if there's any member information records.
         if (is_array($memberInfoRecords) && count($memberInfoRecords) > 0) {
@@ -206,17 +205,9 @@ class GlmMembersAdmin_newDashboard_index extends GlmDataMembers
             if ( has_filter( $a['slug'] . "-dashboard-widget") ) {
                 $addons[$a['slug']]['name'] = $a['short_name'];
                 $addons[$a['slug']]['slug'] = $a['slug'];
-                // $addons[$a['slug']]['index'] = $a['index'];
-                // echo $a['index'];
                 $addons[$a['slug']]['widgetData'] = apply_filters($a['slug'] . "-dashboard-widget", "");
-                //$addons[$a['slug']]['widgetData'] = $this->queryWidgetLists($addons[$a['slug']]['widgetData']);
-
                 // Sort the component list based on the 'order'
                 uasort($addons[$a['slug']]['widgetData']['components'], array($this, 'orderSort') ) ;
-                
-            } else {
-                // For testing
-                //  echo "<br>" . $a['slug'] .  " has no filter called " . $a['slug'] . "-dashboard-widget";
             }
         }