Make WordPress Core

Ticket #44075: 44075.2.diff

File 44075.2.diff, 4.3 KB (added by birgire, 7 years ago)
  • src/wp-admin/includes/file.php

    diff --git src/wp-admin/includes/file.php src/wp-admin/includes/file.php
    index b00752e..75c62e3 100644
    function wp_privacy_generate_personal_data_export_file( $request_id ) { 
    21672167                         * @param string $archive_pathname     The full path to the export file on the filesystem.
    21682168                         * @param string $archive_url          The URL of the archive file.
    21692169                         * @param string $html_report_pathname The full path to the personal data report on the filesystem.
    2170                          * @param string $request_id           The export request ID.
     2170                         * @param int    $request_id           The export request ID.
    21712171                         */
    21722172                        do_action( 'wp_privacy_personal_data_export_file_created', $archive_pathname, $archive_url, $html_report_pathname, $request_id );
    21732173                }
    function wp_privacy_send_personal_data_export_email( $request_id ) { 
    21992199                return new WP_Error( 'invalid', __( 'Invalid request ID when sending personal data export email.' ) );
    22002200        }
    22012201
    2202         /** This filter is documented in wp-admin/includes/file.php */
     2202        /** This filter is documented in wp-includes/functions.php */
    22032203        $expiration      = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS );
    22042204        $expiration_date = date_i18n( get_option( 'date_format' ), time() + $expiration );
    22052205
    function wp_privacy_process_personal_data_export_page( $response, $exporter_inde 
    23212321        update_post_meta( $request_id, '_export_data_raw', $export_data );
    23222322
    23232323        // If we are not yet on the last page of the last exporter, return now.
     2324        /** This filter is documented in wp-admin/includes/ajax-actions.php */
    23242325        $exporters = apply_filters( 'wp_privacy_personal_data_exporters', array() );
    23252326        $is_last_exporter = $exporter_index === count( $exporters );
    23262327        $exporter_done = $response['done'];
    function wp_privacy_process_personal_data_export_page( $response, $exporter_inde 
    23562357        delete_post_meta( $request_id, '_export_data_raw' );
    23572358        update_post_meta( $request_id, '_export_data_grouped', $groups );
    23582359
    2359         // Generate the export file from the collected, grouped personal data.
     2360        /**
     2361         * Generate the export file from the collected, grouped personal data.
     2362         *
     2363         * @since 4.9.6
     2364         *
     2365         * @param int $request_id The export request ID.
     2366         */
    23602367        do_action( 'wp_privacy_personal_data_export_file', $request_id );
    23612368
    23622369        // Clear the grouped data now that it is no longer needed.
  • src/wp-admin/includes/user.php

    diff --git src/wp-admin/includes/user.php src/wp-admin/includes/user.php
    index d361087..fa868d9 100644
    class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Requests_Table { 
    14211421         * @return string Email column markup.
    14221422         */
    14231423        public function column_email( $item ) {
     1424                /** This filter is documented in wp-admin/includes/ajax-actions.php */
    14241425                $exporters       = apply_filters( 'wp_privacy_personal_data_exporters', array() );
    14251426                $exporters_count = count( $exporters );
    14261427                $request_id      = $item->ID;
    class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Requests_Table { 
    14611462                                esc_html_e( 'Waiting for confirmation' );
    14621463                                break;
    14631464                        case 'request-confirmed':
     1465                                /** This filter is documented in wp-admin/includes/ajax-actions.php */
    14641466                                $exporters       = apply_filters( 'wp_privacy_personal_data_exporters', array() );
    14651467                                $exporters_count = count( $exporters );
    14661468                                $request_id      = $item->ID;
    class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Requests_Table { 
    15331535                // Allow the administrator to "force remove" the personal data even if confirmation has not yet been received.
    15341536                $status = $item->status;
    15351537                if ( 'request-confirmed' !== $status ) {
     1538                        /** This filter is documented in wp-admin/includes/ajax-actions.php */
    15361539                        $erasers       = apply_filters( 'wp_privacy_personal_data_erasers', array() );
    15371540                        $erasers_count = count( $erasers );
    15381541                        $request_id    = $item->ID;
    class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Requests_Table { 
    15731576                                esc_html_e( 'Waiting for confirmation' );
    15741577                                break;
    15751578                        case 'request-confirmed':
     1579                                /** This filter is documented in wp-admin/includes/ajax-actions.php */
    15761580                                $erasers       = apply_filters( 'wp_privacy_personal_data_erasers', array() );
    15771581                                $erasers_count = count( $erasers );
    15781582                                $request_id    = $item->ID;