Use correct variable in export. fixes #14213 for trunk.

git-svn-id: http://svn.automattic.com/wordpress/trunk@15367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-07-06 20:24:38 +00:00
parent 23367b2009
commit 23c773df72
1 changed files with 1 additions and 1 deletions

View 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" );