WordPress.org

Make WordPress Core

Ticket #43546: 43546.patch

File 43546.patch, 414 bytes (added by macbookandrew, 2 years ago)

Uses wp_delete_file instead of unlink

  • src/wp-includes/functions.php

     
    63076307                $file_age_in_seconds = time() - filemtime( $export_file );
    63086308
    63096309                if ( $expiration < $file_age_in_seconds ) {
    6310                         unlink( $export_file );
     6310                        wp_delete_file( $export_file );
    63116311                }
    63126312        }
    63136313}