WordPress.org

Make WordPress Core

Ticket #44014: 44014.diff

File 44014.diff, 398 bytes (added by desrosj, 3 years ago)
  • src/wp-admin/includes/file.php

     
    21762176        }
    21772177
    21782178        // And remove the HTML file.
    2179         unlink( $html_report_pathname );
     2179        wp_delete_file( $html_report_pathname );
    21802180
    21812181        if ( $error ) {
    21822182                wp_send_json_error( $error );