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:
parent
6149b94c48
commit
66a16124a4
@ -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" );
|
||||
|
Loading…
Reference in New Issue
Block a user