Make WordPress Core

Ticket #36338: 36338.4.diff

File 36338.4.diff, 2.7 KB (added by theMikeD, 9 years ago)

Tricky one to nail down. I'm done now.

  • src/wp-admin/includes/export.php

     
    2323 * @global wpdb    $wpdb
    2424 * @global WP_Post $post
    2525 *
    26  * @param array $args Filters defining what should be included in the export.
     26 * @param array $args {
     27 *     Optional. Default is to export all content, but note that post content will be exported only
     28 *     if its 'can_export' = 'true' and its status is not 'auto-draft'.
     29 *
     30 *     @type string $content        If set, only content of this post type will be exported.
     31 *                                  Default is all post types for which 'can_export' = 'true'. Accepts 'all',
     32 *                                  'post', 'page', 'attachment' or a defined custom post type.
     33 *                                  Note 1: if an invalid custom post type is supplied, every post type
     34 *                                  for which 'can_export' = 'true' will be exported instead.
     35 *                                  Note 2: if a valid custom post type is supplied but its
     36 *                                  'can_export' = 'false' then 'posts' will be exported instead.
     37 *                                  Note 3: when 'all' is supplied, only post types for which
     38 *                                  'can_export' = 'true' will be exported.
     39 *     @type string $author         If set, only content by this author will be exported. Default is
     40 *                                  all authors. Used only when $content is 'post', 'page' or 'attachment'.
     41 *     @type string $category       If set, only content assigned to $category will be exported. Default is
     42 *                                  all categories. Used only when $content is 'post'.
     43 *     @type string $start_date     If set, this will be the start date. Default is earliest date. Date
     44 *                                  format is 'Y-m-d'. Used only when $content is 'post', 'page' or
     45 *                                  'attachment'.
     46 *     @type string $end_date       If set, this will be the end date. Default is latest date. Date format
     47 *                                  is 'Y-m-d'. Used only when $content is 'post', 'page' or 'attachment'.
     48 *     @type string $status         If set, only content of this status will be exported. Default is all
     49 *                                  status' except 'auto-draft'. Accepts 'publish', 'pending', 'draft',
     50 *                                  'auto-draft', 'future', 'private', 'inherit', 'trash'. Used only
     51 *                                  when $content is 'post' or 'page'.
     52 * }
    2753 */
    2854function export_wp( $args = array() ) {
    2955        global $wpdb, $post;