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
This commit is contained in:
parent
6437456c7e
commit
25846a6d62
|
@ -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