Removing references to "addNotice" function in glmPluginSupport that were causing...
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 5 Oct 2017 21:05:30 +0000 (17:05 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 5 Oct 2017 21:05:30 +0000 (17:05 -0400)
activate.php
models/admin/management/search.php

index 7a90d11..aea0682 100644 (file)
@@ -58,7 +58,6 @@ class glmMembersSearchPluginActivate
 
         // Make sure the current user has this capability
         if (! current_user_can('activate_plugins')) {
-            $this->addNotice("Interesting, you don't have permission to activate plugins.");
             die();
         }
 
index 9ca7953..bc00e1a 100644 (file)
@@ -125,14 +125,6 @@ class GlmMembersAdmin_management_search extends GlmDataSearchManagement
                 // Try to get the first (should be only) entry for general settings.
                 $searchSettings = $this->editEntry(1);
 
-                if ($searchSettings === false) {
-
-                    if (GLM_MEMBERS_PLUGIN_ADMIN_DEBUG) {
-                        glmMembersAdmin::addNotice("<b>&nbsp;&nbsp;/models/admin/management/search.php: Unable to load search management settings.", 'Alert');
-                    }
-
-                }
-
                 break;
 
         }