Make WordPress Core

Changeset 9104


Ignore:
Timestamp:
10/08/2008 11:49:46 PM (18 years ago)
Author:
ryan
Message:

Don't put revisions in the export

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.