From ac5bbe268f36c49c7b30528195e34b6c967c6526 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 8 Oct 2008 23:49:46 +0000 Subject: [PATCH] Don't put revisions in the export git-svn-id: http://svn.automattic.com/wordpress/trunk@9104 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/export.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php index c46843bd5..79d822a47 100644 --- a/wp-admin/includes/export.php +++ b/wp-admin/includes/export.php @@ -264,6 +264,9 @@ echo '\n"; $where = "WHERE ID IN (".join(',', $next_posts).")"; $posts = $wpdb->get_results("SELECT * FROM $wpdb->posts $where ORDER BY post_date_gmt ASC"); foreach ($posts as $post) { + // Don't export revisions. They bloat the export. + if ( 'revision' == $post->post_type ) + continue; setup_postdata($post); ?> <?php echo apply_filters('the_title_rss', $post->post_title); ?>