Skip to content

Commit

Permalink
Disable mu-autoload on WP installing
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokopenko committed Nov 21, 2017
1 parent abcd3af commit f5c8f99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wp-content/mu-plugins/mu-autoload.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

if ( ! $h = opendir(WPMU_PLUGIN_DIR) ) {
if ( ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) || ! $h = opendir( WPMU_PLUGIN_DIR ) ) {
return;
}

while ( false !== ( $entry = readdir( $h ) ) ) {
if ( '.' === $entry || '..' === $entry || ! is_dir(WPMU_PLUGIN_DIR . '/' . $entry) ) {
if ( '.' === $entry || '..' === $entry || ! is_dir( WPMU_PLUGIN_DIR . '/' . $entry ) ) {
continue;
}

Expand Down

0 comments on commit f5c8f99

Please sign in to comment.