Index: wp-admin/export.php
===================================================================
--- wp-admin/export.php	(revision 14470)
+++ wp-admin/export.php	(working copy)
@@ -43,7 +43,9 @@
 require_once ('admin-header.php');
 
 $dateoptions = '';
-if ( $monthyears = $wpdb->get_results( "SELECT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC " ) ) {
+$types = "'" . implode("', '", get_post_types( array( 'public' => true, 'can_export' => true ), 'names' )) . "'";
+$stati = "'" . implode("', '", get_post_stati( array( 'internal' => false ), 'names' )) . "'";
+if ( $monthyears = $wpdb->get_results("SELECT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM $wpdb->posts WHERE post_type IN ($types) AND post_status IN ($stati) GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date ASC ") ) {
 	foreach ( $monthyears as $monthyear ) {
 		$dateoptions .= "\t<option value=\"" . $monthyear->year . '-' . zeroise( $monthyear->month, 2 ) . '">' . $wp_locale->get_month( $monthyear->month ) . ' ' . $monthyear->year . "</option>\n";
 	}
