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

git-svn-id: https://develop.svn.wordpress.org/trunk@15367 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-07-06 20:24:38 +00:00
parent 6149b94c48
commit 66a16124a4
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" );