mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
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:
parent
240e0f44d6
commit
9ebb57dafd
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user