Added include for WordPress plugin.php in front of deactivate_plugins call since...
authorChuck Scott <cscott@gaslightmedia.com>
Wed, 15 Jun 2016 16:01:27 +0000 (12:01 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Wed, 15 Jun 2016 16:01:27 +0000 (12:01 -0400)
index.php

index 6b18163..76f9ad5 100644 (file)
--- a/index.php
+++ b/index.php
@@ -701,6 +701,7 @@ function glmCheckDatabase ()
         // If there was any serious error with the database for this add-on
         if ($db_error) {
             // Deactivate this add-on
+            include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
             deactivate_plugins($a['slug'].'/index.php');
             $startupNotices .= '<p>Plugin '.$a['name'].' Deactivated.</p>';