Changeset 21946
- Timestamp:
- 09/21/2012 09:48:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/export.php
r21735 r21946 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 );
Note: See TracChangeset
for help on using the changeset viewer.