From: Steve Sutton Date: Tue, 30 Jan 2018 17:37:28 +0000 (-0500) Subject: Clean up code. X-Git-Tag: v1.0.0^2~173 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=7ef14ca6c9d0923ff9d6f8dc21a583fb28409849;p=WP-Plugins%2Fglm-member-db-billing.git Clean up code. Removing test of notifications. --- diff --git a/models/admin/settings/notificationTypes.php b/models/admin/settings/notificationTypes.php index 8c25dd8..b596bd4 100644 --- a/models/admin/settings/notificationTypes.php +++ b/models/admin/settings/notificationTypes.php @@ -143,26 +143,6 @@ class GlmMembersAdmin_settings_notificationTypes extends GlmDataNotificationType } switch( $option ) { - case 'test': // TODO: remove this case (only for testing notifications) - require_once GLM_MEMBERS_BILLING_PLUGIN_CLASS_PATH . '/notifications.php'; - $Notifications = new GlmNotifications( $this->wpdb, $this->config ); - /** - * test: - * - * Test the notification email. - * Currently this is just using a hard coded account id of 1. - * After the test it will call wp_die - */ - - $notification_id = filter_var( $_REQUEST['id'], FILTER_VALIDATE_INT ); - if ( $notification_id ) { - echo '
$notification_id: ' . print_r( $notification_id, true ) . '
'; - $account = 1; // TODO: remove this. It's for testing only - $noticeReturned = $Notifications->sendEmailNotification( $notification_id, $account ); - // var_dump( $noticeReturned ); - } - wp_die('Testing here'); - break; case 'add': /** diff --git a/views/admin/settings/editNotificationType.html b/views/admin/settings/editNotificationType.html index 59154e0..2eae49d 100644 --- a/views/admin/settings/editNotificationType.html +++ b/views/admin/settings/editNotificationType.html @@ -165,6 +165,7 @@