Ticket #21960: 21960.diff
File 21960.diff, 568 bytes (added by , 12 years ago) |
---|
-
wp-admin/includes/export.php
238 238 global $wpdb; 239 239 240 240 $authors = array(); 241 $results = $wpdb->get_results( "SELECT DISTINCT post_author FROM $wpdb->posts " );241 $results = $wpdb->get_results( "SELECT DISTINCT post_author FROM $wpdb->posts WHERE post_status != 'auto-draft'" ); 242 242 foreach ( (array) $results as $result ) 243 243 $authors[] = get_userdata( $result->post_author ); 244 244