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.

Built from https://develop.svn.wordpress.org/trunk@25798


git-svn-id: http://core.svn.wordpress.org/trunk@25710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-10-15 20:35:10 +00:00
parent a6188bc84a
commit 2100fa65fd
1 changed files with 1 additions and 1 deletions

View File

@ -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 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' ) ); $files_writable = array_filter( $check_is_writable, array( $wp_filesystem, 'is_writable' ) );
if ( $files_writable !== $check_is_writable ) { if ( $files_writable !== $check_is_writable ) {
$files_not_writable = array_diff_key( $check_is_writable, $files_writable ); $files_not_writable = array_diff_key( $check_is_writable, $files_writable );