mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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'] );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user