WordPress.org

Make WordPress Core

Ticket #3225: 3225.diff

File 3225.diff, 1.5 KB (added by mdawaffe, 7 years ago)
  • wp-admin/export.php

     
    3030header('Content-Description: File Transfer'); 
    3131header('Content-Type: application/octet-stream'); 
    3232header("Content-Disposition: attachment; filename=$filename"); 
    33 header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); 
     33header('Content-type: text/wxr+xml; charset=' . get_option('blog_charset'), true); 
    3434//$posts = query_posts(''); 
    3535$posts = $wpdb->get_results("SELECT * FROM $wpdb->posts ORDER BY post_date_gmt ASC"); 
    3636?> 
     37<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your blog. --> 
     38<!-- It contains information about your blog's posts, comments, and categories. --> 
     39<!-- You may use this file to transfer that content from one site to another. --> 
     40<!-- To import this information into a WordPress blog, --> 
     41<!-- 1. Log into that blog as an administrator --> 
     42<!-- 2. Go to Manage: Import in the blog's admin panels --> 
     43<!-- 3. Choose "WordPress" from the list --> 
     44<!-- 4. Upload this file using the form provided on that page --> 
     45<!-- You will be taken through the simple import procedure. --> 
     46 
    3747<!-- generator="wordpress/<?php bloginfo_rss('version') ?>" created="<?php echo date('Y-m-d H:m'); ?>"--> 
    3848<rss version="2.0"  
    3949        xmlns:content="http://purl.org/rss/1.0/modules/content/" 
     
    105115} 
    106116 
    107117include ('admin-footer.php'); 
    108 ?> 
    109  No newline at end of file 
     118?>