WordPress.org

Make WordPress Core

Ticket #3968: 3968.send-wxr.diff

File 3968.send-wxr.diff, 465 bytes (added by rob1n, 8 years ago)

This one makes the exporter send a .wxr file.

  • wp-admin/export.php

     
    4747function export_wp() { 
    4848global $wpdb, $posts, $post; 
    4949 
    50 $filename = 'wordpress.' . date('Y-m-d') . '.xml'; 
     50$filename = 'wordpress.' . date('Y-m-d') . '.wxr'; 
    5151 
    5252header('Content-Description: File Transfer'); 
    5353header("Content-Disposition: attachment; filename=$filename");