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: https://develop.svn.wordpress.org/trunk@18262 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-06-11 02:35:00 +00:00
parent 240e0f44d6
commit 9ebb57dafd
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}