Make WordPress Core

Ticket #28146: 28146.diff

File 28146.diff, 706 bytes (added by GaryJ, 11 years ago)
  • src/wp-admin/includes/export.php

    diff --git src/wp-admin/includes/export.php src/wp-admin/includes/export.php
    index 397e9e7..f1027f2 100644
    function export_wp( $args = array() ) { 
    8686        // Grab a snapshot of post IDs, just in case it changes during the export.
    8787        $post_ids = $wpdb->get_col( "SELECT ID FROM {$wpdb->posts} $join WHERE $where" );
    8888
     89        /**
     90         * Filter exported post IDs.
     91         *
     92         * @since x.x.x
     93         *
     94         * @param array Array of post IDs included in the export.
     95         */
     96        $post_ids = apply_filters( 'export_post_ids', $post_ids, $args );
     97
    8998        /*
    9099         * Get the requested terms ready, empty unless posts filtered by category
    91100         * or all content.