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
This commit is contained in:
nacin 2011-06-11 02:35:00 +00:00
parent 2d54db5d7c
commit fcf8586289
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;
}