Make WordPress Core

Changeset 43305 for branches/4.9


Ignore:
Timestamp:
05/21/2018 01:15:21 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing documentation and duplicate hook references for wp_privacy_personal_data_export_file, wp_privacy_personal_data_exporters, and wp_privacy_personal_data_erasers hooks.

Props birgire.
Merges [43303] to the 4.9 branch.
See #44125.

Location:
branches/4.9
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/includes/file.php

    r43300 r43305  
    18041804 * @since 4.9.6
    18051805 *
    1806  * @param array  $group_data {
     1806 * @param array $group_data {
    18071807 *     The group data to render.
    18081808 *
    … …  
    18661866 * @since 4.9.6
    18671867 *
    1868  * @param int  $request_id The export request ID.
     1868 * @param int $request_id The export request ID.
    18691869 */
    18701870function wp_privacy_generate_personal_data_export_file( $request_id ) {
    … …  
    20302030                         * @param string $archive_url          The URL of the archive file.
    20312031                         * @param string $html_report_pathname The full path to the personal data report on the filesystem.
    2032                          * @param string $request_id           The export request ID.
     2032                         * @param int    $request_id           The export request ID.
    20332033                         */
    20342034                        do_action( 'wp_privacy_personal_data_export_file_created', $archive_pathname, $archive_url, $html_report_pathname, $request_id );
    … …  
    20512051 * @since 4.9.6
    20522052 *
    2053  * @param int  $request_id The request ID for this personal data export.
    2054  * @return true|WP_Error    True on success or `WP_Error` on failure.
     2053 * @param int $request_id The request ID for this personal data export.
     2054 * @return true|WP_Error True on success or `WP_Error` on failure.
    20552055 */
    20562056function wp_privacy_send_personal_data_export_email( $request_id ) {
    … …  
    20622062        }
    20632063
    2064         /** This filter is documented in wp-admin/includes/file.php */
     2064        /** This filter is documented in wp-includes/functions.php */
    20652065        $expiration      = apply_filters( 'wp_privacy_export_expiration', 3 * DAY_IN_SECONDS );
    20662066        $expiration_date = date_i18n( get_option( 'date_format' ), time() + $expiration );
    … …  
    21842184
    21852185        // If we are not yet on the last page of the last exporter, return now.
     2186        /** This filter is documented in wp-admin/includes/ajax-actions.php */
    21862187        $exporters = apply_filters( 'wp_privacy_personal_data_exporters', array() );
    21872188        $is_last_exporter = $exporter_index === count( $exporters );
    … …  
    22192220        update_post_meta( $request_id, '_export_data_grouped', $groups );
    22202221
    2221         // Generate the export file from the collected, grouped personal data.
     2222        /**
     2223         * Generate the export file from the collected, grouped personal data.
     2224         *
     2225         * @since 4.9.6
     2226         *
     2227         * @param int $request_id The export request ID.
     2228         */
    22222229        do_action( 'wp_privacy_personal_data_export_file', $request_id );
    22232230
  • branches/4.9/src/wp-admin/includes/user.php

    r43257 r43305  
    13811381         */
    13821382        public function column_email( $item ) {
     1383                /** This filter is documented in wp-admin/includes/ajax-actions.php */
    13831384                $exporters       = apply_filters( 'wp_privacy_personal_data_exporters', array() );
    13841385                $exporters_count = count( $exporters );
    … …  
    14211422                                break;
    14221423                        case 'request-confirmed':
     1424                                /** This filter is documented in wp-admin/includes/ajax-actions.php */
    14231425                                $exporters       = apply_filters( 'wp_privacy_personal_data_exporters', array() );
    14241426                                $exporters_count = count( $exporters );
    … …  
    14931495                $status = $item->status;
    14941496                if ( 'request-confirmed' !== $status ) {
     1497                        /** This filter is documented in wp-admin/includes/ajax-actions.php */
    14951498                        $erasers       = apply_filters( 'wp_privacy_personal_data_erasers', array() );
    14961499                        $erasers_count = count( $erasers );
    … …  
    15331536                                break;
    15341537                        case 'request-confirmed':
     1538                                /** This filter is documented in wp-admin/includes/ajax-actions.php */
    15351539                                $erasers       = apply_filters( 'wp_privacy_personal_data_erasers', array() );
    15361540                                $erasers_count = count( $erasers );
Note: See TracChangeset for help on using the changeset viewer.