]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/export.php
Wordpress 3.0.6-scripts
[autoinstalls/wordpress.git] / wp-admin / includes / export.php
index 345eed2056d5b515be8911eba3aad3d9c2279c44..a9e8f22dbf9228ece811f9e577b5a34ce18fc42a 100644 (file)
@@ -69,7 +69,7 @@ function export_wp( $args = array() ) {
        }
 
        if ( $post_status && $post_status != 'all' )
-               $where .= $wpdb->prepare( "AND post_status = %s", $status );
+               $where .= $wpdb->prepare( "AND post_status = %s", $post_status );
 
        // grab a snapshot of post IDs, just in case it changes during the export
        $post_ids = $wpdb->get_col( "SELECT ID FROM $wpdb->posts $where ORDER BY post_date_gmt ASC" );