From 1e8729b5c113af248814befeb95eec2d7085ffbe Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 15 Oct 2013 20:34:02 +0000 Subject: [PATCH] Avoid our pre-flight writable checks if get_core_checksums() doesn't exist yet. Thus, it will not work for 3.6 => 3.7, only 3.7+. see #22704. git-svn-id: https://develop.svn.wordpress.org/trunk@25798 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/update-core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php index b3062e9685..32266bb70f 100644 --- a/src/wp-admin/includes/update-core.php +++ b/src/wp-admin/includes/update-core.php @@ -710,7 +710,7 @@ function update_core($from, $to) { } // If we're using the direct method, we can predict write failures that are due to permissions. - if ( $wp_filesystem->method === 'direct' ) { + if ( $check_is_writable && 'direct' === $wp_filesystem->method ) { $files_writable = array_filter( $check_is_writable, array( $wp_filesystem, 'is_writable' ) ); if ( $files_writable !== $check_is_writable ) { $files_not_writable = array_diff_key( $check_is_writable, $files_writable );