projects
/
WP-Plugins
/
glm-member-db.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
624f0ae
)
Added include for WordPress plugin.php in front of deactivate_plugins call since...
author
Chuck Scott
<cscott@gaslightmedia.com>
Wed, 15 Jun 2016 16:01:27 +0000
(12:01 -0400)
committer
Chuck Scott
<cscott@gaslightmedia.com>
Wed, 15 Jun 2016 16:01:27 +0000
(12:01 -0400)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/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>';