From: Laury GvR Date: Sat, 27 Jul 2019 00:05:10 +0000 (-0400) Subject: Remove unused code and comments X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=df18f671ffb4097808bc22b21ec97844260c99d4;p=WP-Plugins%2Fglm-member-db-rest-api.git Remove unused code and comments --- diff --git a/setup/routes/dashboard.php b/setup/routes/dashboard.php index e2b782a..87f71bc 100644 --- a/setup/routes/dashboard.php +++ b/setup/routes/dashboard.php @@ -118,6 +118,7 @@ class GLMA_Dashboard_Rest_Controller } if ( defined("GLM_MEMBERS_PLUGIN_PATH") ) { + // Cannot think of a reason to use members on home screen //$members = $this->get_members_summary(); //$summary['members'] = $members; } @@ -173,29 +174,9 @@ class GLMA_Dashboard_Rest_Controller } return $status; } - - -// FOR REFERENCE DURING DEV -// ; -// ; Entry Status Types -// ; -// status[10] = 'Active' -// status[20] = 'Pending Review' -// status[30] = 'Inactive' -// status[90] = 'Archived' - -// status_numb['Active'] = 10 -// status_numb['Pending'] = 20 -// status_numb['Inactive'] = 30 -// status_numb['Archived'] = 90 - // Get members public function get_members_summary() { - - // !!! - // WE'LL NEED TO GET MEMBER INFO AS WELL - // !!! $fields = "id, name, member_slug"; $table = GLM_MEMBERS_PLUGIN_DB_PREFIX."members"; $where = @@ -214,7 +195,6 @@ class GLMA_Dashboard_Rest_Controller $members = $this->wpdb->get_results( $sql ); return $members; - } // Get events