From 66a16124a49ee8e02a2002dad0d548f0be1a526f Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 6 Jul 2010 20:24:38 +0000 Subject: [PATCH] Use correct variable in export. fixes #14213 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@15367 602fd350-edb4-49c9-b593-d223f7449a82 --- 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" );