diff --git a/mu-loader.php b/mu-loader.php index 93add61..233688b 100644 --- a/mu-loader.php +++ b/mu-loader.php @@ -3,11 +3,6 @@ function mu_loader_plugins_files() { - if (defined('WP_INSTALLING') && WP_INSTALLING === true) { - // Do nothing during installation - return array(); - } - // Cache plugins $plugins = get_site_transient('mu_loader_plugins'); @@ -22,7 +17,7 @@ function mu_loader_plugins_files() } } - if ($plugins === false) { + if ($plugins === false || $plugins === array()) { if (!function_exists('get_plugins')) { // get_plugins is not included by default require ABSPATH . 'wp-admin/includes/plugin.php'; diff --git a/mu-require.php b/mu-require.php index 2d1b6e2..c2c062c 100644 --- a/mu-require.php +++ b/mu-require.php @@ -3,7 +3,7 @@ * Plugin Name: MU plugins subdirectory loader * Plugin URI: https://github.com/wemakecustom/wp-mu-loader * Description: Enables the loading of plugins sitting in mu-plugins (as folders) - * Version: 1.0 + * Version: 1.1 * Author: WeMakeCustom * Author URI: http://www.wemakecustom.com/ *