Make WordPress Core

Changeset 18262


Ignore:
Timestamp:
06/11/2011 02:35:00 AM (14 years ago)
Author:
nacin
Message:

Make update-core only do sanity checks against readme.html and version.php, both always included even in partial builds. fixes #17760.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/update-core.php

    r18256 r18262  
    355355    $roots = array( '/wordpress/', '/wordpress-mu/' );
    356356    foreach( $roots as $root ) {
    357         if ( $wp_filesystem->exists($from . $root . 'wp-settings.php') && $wp_filesystem->exists($from . $root . 'wp-admin/admin.php') &&
    358             $wp_filesystem->exists($from . $root . 'wp-includes/functions.php') ) {
     357        if ( $wp_filesystem->exists($from . $root . 'readme.html') && $wp_filesystem->exists($from . $root . 'wp-includes/version.php') ) {
    359358            $distro = $root;
    360359            break;
Note: See TracChangeset for help on using the changeset viewer.