Changeset 44954 for trunk/src/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 03/21/2019 05:48:46 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-upgrader.php
r42787 r44954 276 276 $this->skin->feedback( 'downloading_package', $package ); 277 277 278 $download_file = download_url( $package );279 280 if ( is_wp_error( $download_file ) ) {278 $download_file = download_url( $package, 300, true ); 279 280 if ( is_wp_error( $download_file ) && ! $download_file->get_error_data( 'softfail-filename' ) ) { 281 281 return new WP_Error( 'download_failed', $this->strings['download_failed'], $download_file->get_error_message() ); 282 282 } … … 732 732 */ 733 733 $download = $this->download_package( $options['package'] ); 734 735 // Allow for signature soft-fail. 736 // WARNING: This may be removed in the future. 737 if ( is_wp_error( $download ) && $download->get_error_data( 'softfail-filename' ) ) { 738 // Outout the failure error as a normal feedback, and not as an error: 739 $this->skin->feedback( $download->get_error_message() ); 740 741 // Report this failure back to WordPress.org for debugging purposes. 742 wp_version_check( 743 array( 744 'signature_failure_code' => $download->get_error_code(), 745 'signature_failure_data' => $download->get_error_data(), 746 ) 747 ); 748 749 // Pretend this error didn't happen. 750 $download = $download->get_error_data( 'softfail-filename' ); 751 } 752 734 753 if ( is_wp_error( $download ) ) { 735 754 $this->skin->error( $download );
Note: See TracChangeset
for help on using the changeset viewer.