diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php
index 756f92740e..d6119583bc 100644
--- a/wp-admin/plugins.php
+++ b/wp-admin/plugins.php
@@ -1,26 +1,23 @@
@@ -60,7 +53,7 @@ foreach ($check_plugins as $check_plugin) {
-
wp-content/plugins directory. Once a plugin is installed, you may activate it or deactivate it here.'); ?>
+
wp-content/plugins directory. Once a plugin is installed, you may activate it or deactivate it here. If something goes wrong with a plugin and you can’t use WordPress, delete that plugin from the wp-content/plugins
directory and it will be automatically deactivated.'); ?>
Couldn't open plugins directory or there are no plugins available."); // TODO: make more helpful
diff --git a/wp-admin/upgrade-functions.php b/wp-admin/upgrade-functions.php
index 6cf619a9d0..f4f32ebaad 100644
--- a/wp-admin/upgrade-functions.php
+++ b/wp-admin/upgrade-functions.php
@@ -923,6 +923,11 @@ function upgrade_130() {
if ($wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = 'what_to_show'") == 'paged') {
$wpdb->query("UPDATE $wpdb->options SET option_value = 'posts' WHERE option_name = 'what_to_show'");
}
+
+ if ( !is_array( get_settings('active_plugins') ) ) {
+ $plugins = explode("\n", get_settings('active_plugins') );
+ update_option('active_plugins', $plugins);
+ }
}
?>
\ No newline at end of file
diff --git a/wp-settings.php b/wp-settings.php
index a48abdc528..b16d66933d 100644
--- a/wp-settings.php
+++ b/wp-settings.php
@@ -81,7 +81,7 @@ if (get_settings('hack_file')) {
}
if ( get_settings('active_plugins') ) {
- $current_plugins = explode("\n", get_settings('active_plugins') );
+ $current_plugins = get_settings('active_plugins');
foreach ($current_plugins as $plugin) {
if (file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))
include(ABSPATH . 'wp-content/plugins/' . $plugin);