Make WordPress Core

Ticket #17760: 17760.diff

File 17760.diff, 718 bytes (added by nacin, 13 years ago)

Hammer.

  • wp-admin/includes/update-core.php

     
    343343        $distro = '';
    344344        $roots = array( '/wordpress/', '/wordpress-mu/' );
    345345        foreach( $roots as $root ) {
    346                 if ( $wp_filesystem->exists($from . $root . 'wp-settings.php') && $wp_filesystem->exists($from . $root . 'wp-admin/admin.php') &&
    347                         $wp_filesystem->exists($from . $root . 'wp-includes/functions.php') ) {
     346                if ( $wp_filesystem->exists($from . $root . 'readme.html') && $wp_filesystem->exists($from . $root . 'wp-includes/version.php') ) {
    348347                        $distro = $root;
    349348                        break;
    350349                }