Make WordPress Core

Ticket #21960: 21960.diff

File 21960.diff, 568 bytes (added by westi, 12 years ago)

Simple patch to fix this issue

  • wp-admin/includes/export.php

     
    238238                global $wpdb;
    239239
    240240                $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'" );
    242242                foreach ( (array) $results as $result )
    243243                        $authors[] = get_userdata( $result->post_author );
    244244