mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-25 13:52:59 +02:00
Use correct variable in export. fixes #14213 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
23367b2009
commit
23c773df72
@ -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