- Timestamp:
- 01/30/2024 03:11:35 PM (2 years ago)
- Location:
- branches/4.4
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/class-wp-upgrader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.4
- Property svn:mergeinfo changed
/trunk merged: 57388-57389
- Property svn:mergeinfo changed
-
branches/4.4/src/wp-admin/includes/class-wp-upgrader.php
r38527 r57411 2548 2548 wp_die( $file['error'] ); 2549 2549 2550 if ( 'pluginzip' === $form || 'themezip' === $form ) { 2551 $archive_is_valid = false; 2552 2553 /** This filter is documented in wp-admin/includes/file.php */ 2554 if ( class_exists( 'ZipArchive', false ) && apply_filters( 'unzip_file_use_ziparchive', true ) ) { 2555 $archive = new ZipArchive(); 2556 $archive_is_valid = $archive->open( $file['file'], ZIPARCHIVE::CHECKCONS ); 2557 2558 if ( true === $archive_is_valid ) { 2559 $archive->close(); 2560 } 2561 } else { 2562 require_once ABSPATH . 'wp-admin/includes/class-pclzip.php'; 2563 2564 $archive = new PclZip( $file['file'] ); 2565 $archive_is_valid = is_array( $archive->properties() ); 2566 } 2567 2568 if ( true !== $archive_is_valid ) { 2569 wp_delete_file( $file['file'] ); 2570 wp_die( __( 'Incompatible Archive.' ) ); 2571 } 2572 } 2573 2550 2574 $this->filename = $_FILES[$form]['name']; 2551 2575 $this->package = $file['file'];
Note: See TracChangeset
for help on using the changeset viewer.