Make WordPress Core

Changeset 9128


Ignore:
Timestamp:
10/12/2008 06:09:44 PM (16 years ago)
Author:
azaozz
Message:

Core update: fix for "The update could not be unpacked" error, props ShaneF, fixes #7861

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/update-core.php

    r9086 r9128  
    178178    // Sanity check the unzipped distribution
    179179    apply_filters('update_feedback', __('Verifying the unpacked files'));
    180     if ( !file_exists($from . '/wordpress/wp-settings.php') || !file_exists($from . '/wordpress/wp-admin/admin.php') ||
    181         !file_exists($from . '/wordpress/wp-includes/functions.php') ) {
     180    if ( !$wp_filesystem->exists($from . '/wordpress/wp-settings.php') || !$wp_filesystem->exists($from . '/wordpress/wp-admin/admin.php') ||
     181        !$wp_filesystem->exists($from . '/wordpress/wp-includes/functions.php') ) {
    182182        $wp_filesystem->delete($from, true);
    183183        return new WP_Error('insane_distro', __('The update could not be unpacked') );
     
    203203    foreach ( $_old_files as $old_file ) {
    204204        $old_file = $to . $old_file;
    205         if ( !file_exists($old_file) )
     205        if ( !$wp_filesystem->exists($old_file) )
    206206            continue;
    207207        $wp_filesystem->delete($old_file, true);
Note: See TracChangeset for help on using the changeset viewer.