Make WordPress Core

Changeset 14377


Ignore:
Timestamp:
05/03/2010 06:44:34 PM (14 years ago)
Author:
dd32
Message:

Fix ZIP_ER_OK constant, Its a class constant, and only accessible as such under PHP5. Props sivel for noticing. Fixes #12637

File:
1 edited

Legend:

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

    r14349 r14377  
    578578    // PHP4-compat - php4 classes can't contain constants
    579579    $zopen = $z->open($file, /* ZIPARCHIVE::CHECKCONS */ 4);
    580     if ( true !== $zopen || ZIP_ER_OK !== $zopen ) // may return true, or (int)0 ZIP_ER_OK under certain versions
     580    if ( true !== $zopen || /* ZIPARCHIVE::ZIP_ER_OK */ 0 !== $zopen ) // may return true, or (int)0 ZIP_ER_OK under certain versions
    581581        return new WP_Error('incompatible_archive', __('Incompatible Archive.'));
    582582
Note: See TracChangeset for help on using the changeset viewer.