WordPress.org

Make WordPress Core

Changeset 14800


Ignore:
Timestamp:
05/22/10 05:09:08 (4 years ago)
Author:
dd32
Message:

Correct the ZipArchive opening test logic. See #13491

File:
1 edited

Legend:

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

    r14649 r14800  
    586586    // PHP4-compat - php4 classes can't contain constants 
    587587    $zopen = $z->open($file, /* ZIPARCHIVE::CHECKCONS */ 4); 
    588     if ( true !== $zopen || /* ZIPARCHIVE::ZIP_ER_OK */ 0 !== $zopen ) // may return true, or (int)0 ZIP_ER_OK under certain versions 
     588    if ( true !== $zopen && /* ZIPARCHIVE::ZIP_ER_OK */ 0 !== $zopen ) // may return true, or (int)0 ZIP_ER_OK under certain versions 
    589589        return new WP_Error('incompatible_archive', __('Incompatible Archive.')); 
    590590 
Note: See TracChangeset for help on using the changeset viewer.