WordPress.org

Make WordPress Core

Ticket #19863: export_patch.patch

File export_patch.patch, 1.2 KB (added by MartyThornley, 6 years ago)
  • wp-admin/export.php

     
    8888        } else {
    8989                $args['content'] = $_GET['content'];
    9090        }
    91 
     91       
     92        $args = apply_filters( 'wp_export_args' , $args );
     93       
    9294        export_wp( $args );
    9395        die();
    9496}
     
    133135<p><label><input type="radio" name="content" value="all" checked="checked" /> <?php _e( 'All content' ); ?></label>
    134136<span class="description"><?php _e( 'This will contain all of your posts, pages, comments, custom fields, terms, navigation menus and custom posts.' ); ?></span></p>
    135137
     138<?php do_action( 'export_filters_before' ); ?>
     139
    136140<p><label><input type="radio" name="content" value="posts" /> <?php _e( 'Posts' ); ?></label></p>
    137141<ul id="post-filters" class="export-filters">
    138142        <li>
     
    204208<p><label><input type="radio" name="content" value="<?php echo esc_attr( $post_type->name ); ?>" /> <?php echo esc_html( $post_type->label ); ?></label></p>
    205209<?php endforeach; ?>
    206210
     211<?php do_action( 'export_filters_after' ); ?>
     212
    207213<?php submit_button( __('Download Export File'), 'secondary' ); ?>
    208214</form>
    209215</div>