Export: allow Media to exported separately from other types.

Props PhilipLakin.
Fixes #32230.


git-svn-id: https://develop.svn.wordpress.org/trunk@34326 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-09-19 16:46:17 +00:00
parent d9b58bd4ac
commit 3624366045
2 changed files with 25 additions and 3 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ function export_wp( $args = array() ) {
}
}
if ( 'post' == $args['content'] || 'page' == $args['content'] ) {
if ( 'post' == $args['content'] || 'page' == $args['content'] || 'attachment' == $args['content'] ) {
if ( $args['author'] )
$where .= $wpdb->prepare( " AND {$wpdb->posts}.post_author = %d", $args['author'] );