X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/699231ae09f7057a4d0000cdf32e50a3df6a04ca..58f607a1de715c9bca69340a4d6fb9e1b9c2bed2:/wp-admin/includes/export.php diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php index 345eed20..a9e8f22d 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" );