Changeset 5910 for trunk/wp-admin/export.php
- Timestamp:
- 08/21/2007 06:27:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/export.php
r5862 r5910 26 26 <option value="all" selected="selected"><?php _e('All'); ?></option> 27 27 <?php 28 $authors = $wpdb->get_col( "SELECT post_author FROM $wpdb->posts GROUP BY post_author" ); 28 $authors = $wpdb->get_col( "SELECT post_author FROM $wpdb->posts GROUP BY post_author" ); 29 29 foreach ( $authors as $id ) { 30 30 $o = get_userdata( $id ); … … 132 132 133 133 <!-- 134 This is a WordPress eXtended RSS file generated by WordPress as an export of 135 your blog. It contains information about your blog's posts, comments, and 136 categories. You may use this file to transfer that content from one site to 134 This is a WordPress eXtended RSS file generated by WordPress as an export of 135 your blog. It contains information about your blog's posts, comments, and 136 categories. You may use this file to transfer that content from one site to 137 137 another. This file is not intended to serve as a complete backup of your 138 138 blog. … … 144 144 3. Choose "WordPress" from the list of importers. 145 145 4. Upload this file using the form provided on that page. 146 5. You will first be asked to map the authors in this export file to users 147 on the blog. For each author, you may choose to map an existing user on 146 5. You will first be asked to map the authors in this export file to users 147 on the blog. For each author, you may choose to map an existing user on 148 148 the blog or to create a new user. 149 6. WordPress will then import each of the posts, comments, and categories 149 6. WordPress will then import each of the posts, comments, and categories 150 150 contained in this file onto your blog. 151 151 --> … … 175 175 $where = "WHERE ID IN (".join(',', $next_posts).")"; 176 176 $posts = $wpdb->get_results("SELECT * FROM $wpdb->posts $where ORDER BY post_date_gmt ASC"); 177 foreach ($posts as $post) { 177 foreach ($posts as $post) { 178 178 start_wp(); ?> 179 179 <item> 180 180 <title><?php the_title_rss() ?></title> 181 <link><?php permalink_single_rss() ?></link>181 <link><?php the_permalink_rss() ?></link> 182 182 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate> 183 183 <dc:creator><?php the_author() ?></dc:creator>
Note: See TracChangeset
for help on using the changeset viewer.