Make WordPress Core

Changeset 8580


Ignore:
Timestamp:
08/07/2008 07:15:04 PM (16 years ago)
Author:
ryan
Message:

Fix bad bracketing in unzip_file()

File:
1 edited

Legend:

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

    r8540 r8580  
    385385
    386386        // We've made sure the folders are there, so let's extract the file now:
    387         if ( ! $file['folder'] )
     387        if ( ! $file['folder'] ) {
    388388            if ( !$fs->put_contents( $to . $file['filename'], $file['content']) )
    389389                return new WP_Error('copy_failed', __('Could not copy file'), $to . $file['filename']);
    390390            $fs->chmod($to . $file['filename'], 0644);
     391        }
    391392    }
    392393
Note: See TracChangeset for help on using the changeset viewer.