From fcf8586289ea052e75388e338210d5851ed3d0b6 Mon Sep 17 00:00:00 2001 From: nacin Date: Sat, 11 Jun 2011 02:35:00 +0000 Subject: [PATCH] Make update-core only do sanity checks against readme.html and version.php, both always included even in partial builds. fixes #17760. git-svn-id: http://svn.automattic.com/wordpress/trunk@18262 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/update-core.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }