Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions mu-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion mu-require.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please let the repo owner manage their own version system.
Could you remove this change from your commit please?

* Author: WeMakeCustom
* Author URI: http://www.wemakecustom.com/
*
Expand Down