Ticket #17760: 17760.diff
File 17760.diff, 718 bytes (added by , 14 years ago) |
---|
-
wp-admin/includes/update-core.php
343 343 $distro = ''; 344 344 $roots = array( '/wordpress/', '/wordpress-mu/' ); 345 345 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') ) { 348 347 $distro = $root; 349 348 break; 350 349 }