From 25846a6d6201231fe3bd852ec58ebfdc60909337 Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 6 Jul 2010 20:25:30 +0000 Subject: [PATCH] Use correct variable in export. fixes #14213 for 3.01. git-svn-id: http://svn.automattic.com/wordpress/branches/3.0@15368 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/export.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php index 345eed2056..a9e8f22dbf 100644 --- a/wp-admin/includes/export.php +++ b/wp-admin/includes/export.php @@ -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" );