WordPress.org

Make WordPress Core

Changeset 17693


Ignore:
Timestamp:
04/23/11 14:30:44 (7 years ago)
Author:
dd32
Message:

Handle zip error's in PclZip better. PclZip::extract() returns an array on success, 0 on failure. Fixes #17224

File:
1 edited

Legend:

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

    r17592 r17693  
    669669 
    670670    // Is the archive valid? 
    671     if ( false === $archive_files ) 
     671    if ( !is_array($archive_files) ) 
    672672        return new WP_Error('incompatible_archive', __('Incompatible Archive.'), $archive->errorInfo(true)); 
    673673 
Note: See TracChangeset for help on using the changeset viewer.