Changeset 9104

Show
Ignore:
Timestamp:
10/08/08 23:49:46 (2 months ago)
Author:
ryan
Message:

Don't put revisions in the export

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/includes/export.php

    r8912 r9104  
    265265            $posts = $wpdb->get_results("SELECT * FROM $wpdb->posts $where ORDER BY post_date_gmt ASC"); 
    266266                foreach ($posts as $post) { 
     267            // Don't export revisions.  They bloat the export. 
     268            if ( 'revision' == $post->post_type ) 
     269                continue; 
    267270            setup_postdata($post); ?> 
    268271<item>