Make WordPress Core


Ignore:
Timestamp:
09/19/2015 04:46:17 PM (8 years ago)
Author:
wonderboymusic
Message:

Export: allow Media to exported separately from other types.

Props PhilipLakin.
Fixes #32230.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/export.php

    r33958 r34326  
    7676    }
    7777
    78     if ( 'post' == $args['content'] || 'page' == $args['content'] ) {
     78    if ( 'post' == $args['content'] || 'page' == $args['content'] || 'attachment' == $args['content'] ) {
    7979        if ( $args['author'] )
    8080            $where .= $wpdb->prepare( " AND {$wpdb->posts}.post_author = %d", $args['author'] );
Note: See TracChangeset for help on using the changeset viewer.