WordPress.org

Make WordPress Core

Ticket #44236: 44236.patch

File 44236.patch, 541 bytes (added by GripsArt, 2 years ago)

Changed hardcoded "index.html" to $html_report_filename

  • src/wp-admin/includes/file.php

     
    21512151
    21522152        $zip = new ZipArchive;
    21532153        if ( true === $zip->open( $archive_pathname, ZipArchive::CREATE ) ) {
    2154                 if ( ! $zip->addFile( $html_report_pathname, 'index.html' ) ) {
     2154                if ( ! $zip->addFile( $html_report_pathname, $html_report_filename ) ) {
    21552155                        $error = __( 'Unable to add data to export file.' );
    21562156                }
    21572157