diff --git a/wp-admin/includes/update-core.php b/wp-admin/includes/update-core.php index 0b065a0ea..d18f74b56 100644 --- a/wp-admin/includes/update-core.php +++ b/wp-admin/includes/update-core.php @@ -354,8 +354,7 @@ function update_core($from, $to) { $distro = ''; $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') ) { + if ( $wp_filesystem->exists($from . $root . 'readme.html') && $wp_filesystem->exists($from . $root . 'wp-includes/version.php') ) { $distro = $root; break; }