WordPress.org

Make WordPress Core

Ticket #15055: 15055.export.php.diff

File 15055.export.php.diff, 777 bytes (added by RyanMurphy, 4 years ago)
  • wp-admin/includes/export.php

     
    3737        do_action('export_wp'); 
    3838 
    3939        if( strlen( $start_date ) > 4 && strlen( $end_date ) > 4 ) 
    40                 $filename = 'wordpress.' . $start_date . '.' . $end_date . '.xml'; 
     40                $filename = '.wordpress.' . $start_date . '.' . $end_date . '.xml'; 
    4141        else 
    42                 $filename = 'wordpress.' . date( 'Y-m-d' ) . '.xml'; 
     42                $filename = '.wordpress.' . date( 'Y-m-d' ) . '.xml'; 
     43                 
     44        $filename = str_replace( ' ', '-', get_bloginfo( 'name' ) ) . $filename; 
    4345 
    4446        header( 'Content-Description: File Transfer' ); 
    4547        header( 'Content-Disposition: attachment; filename=' . $filename );