From 5f96f094cedbeb8cb4d0814ac6bc2fe3cae0a632 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Wed, 15 Jun 2016 12:01:27 -0400 Subject: [PATCH] Added include for WordPress plugin.php in front of deactivate_plugins call since that was out of scope. --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index 6b181630..76f9ad5a 100644 --- 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 .= '

Plugin '.$a['name'].' Deactivated.

'; -- 2.17.1