remove naughty not, see #13625
git-svn-id: https://develop.svn.wordpress.org/trunk@15061 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f2b7384e9c
commit
1485267cce
@ -294,7 +294,7 @@ function update_core($from, $to) {
|
|||||||
$roots = array( '/wordpress', '/wordpress-mu' );
|
$roots = array( '/wordpress', '/wordpress-mu' );
|
||||||
foreach( $roots as $root ) {
|
foreach( $roots as $root ) {
|
||||||
if ( $wp_filesystem->exists($from . $root . '/wp-settings.php') && $wp_filesystem->exists($from . $root . '/wp-admin/admin.php') &&
|
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') ) {
|
$wp_filesystem->exists($from . $root . '/wp-includes/functions.php') ) {
|
||||||
$distro = $root;
|
$distro = $root;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user