Ticket #3225: 3225.diff
| File 3225.diff, 1.5 KB (added by mdawaffe, 6 years ago) |
|---|
-
wp-admin/export.php
30 30 header('Content-Description: File Transfer'); 31 31 header('Content-Type: application/octet-stream'); 32 32 header("Content-Disposition: attachment; filename=$filename"); 33 header('Content-type: text/ xml; charset=' . get_option('blog_charset'), true);33 header('Content-type: text/wxr+xml; charset=' . get_option('blog_charset'), true); 34 34 //$posts = query_posts(''); 35 35 $posts = $wpdb->get_results("SELECT * FROM $wpdb->posts ORDER BY post_date_gmt ASC"); 36 36 ?> 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 37 47 <!-- generator="wordpress/<?php bloginfo_rss('version') ?>" created="<?php echo date('Y-m-d H:m'); ?>"--> 38 48 <rss version="2.0" 39 49 xmlns:content="http://purl.org/rss/1.0/modules/content/" … … 105 115 } 106 116 107 117 include ('admin-footer.php'); 108 ?> 109 No newline at end of file 118 ?>
