diff --git a/wp-admin/includes/update-core.php b/wp-admin/includes/update-core.php index 7100524ea4..d9698a7e4c 100644 --- a/wp-admin/includes/update-core.php +++ b/wp-admin/includes/update-core.php @@ -294,7 +294,7 @@ function update_core($from, $to) { $roots = array( '/wordpress', '/wordpress-mu' ); foreach( $roots as $root ) { if ( $wp_filesystem->exists($from . $root . '/wp-settings.php') && $wp_filesystem->exists($from . $root . '/wp-admin/admin.php') && - !$wp_filesystem->exists($from . $root . '/wp-includes/functions.php') ) { + $wp_filesystem->exists($from . $root . '/wp-includes/functions.php') ) { $distro = $root; break; }