Make WordPress Core


Ignore:
Timestamp:
08/28/2023 09:51:44 PM (2 years ago)
Author:
johnbillion
Message:

Privacy: Improve docblocks for hooks and functions related to personal data export and erasure.

See #58833

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r56245 r56482  
    49404940     *
    49414941     *         @type callable $callback               Callable exporter function that accepts an
    4942      *                                                email address and a page and returns an array
    4943      *                                                of name => value pairs of personal data.
     4942     *                                                email address and a page number and returns an
     4943     *                                                array of name => value pairs of personal data.
    49444944     *         @type string   $exporter_friendly_name Translated user facing friendly name for the
    49454945     *                                                exporter.
     
    50525052     * @since 4.9.6
    50535053     *
    5054      * @param array  $response        The personal data for the given exporter and page.
     5054     * @param array  $response        The personal data for the given exporter and page number.
    50555055     * @param int    $exporter_index  The index of the exporter that provided this data.
    50565056     * @param string $email_address   The email address associated with this personal data.
    5057      * @param int    $page            The page for this response.
     5057     * @param int    $page            The page number for this response.
    50585058     * @param int    $request_id      The privacy request post ID associated with this request.
    50595059     * @param bool   $send_as_email   Whether the final results of the export should be emailed to the user.
     
    51295129     *         Array of personal data exporters.
    51305130     *
    5131      *         @type callable $callback               Callable eraser that accepts an email address and
    5132      *                                                a page and returns an array with boolean values for
     5131     *         @type callable $callback               Callable eraser that accepts an email address and a page
     5132     *                                                number, and returns an array with boolean values for
    51335133     *                                                whether items were removed or retained and any messages
    51345134     *                                                from the eraser, as well as if additional pages are
     
    52825282     * @since 4.9.6
    52835283     *
    5284      * @param array  $response        The personal data for the given exporter and page.
     5284     * @param array  $response        {
     5285     *     The personal data for the given exporter and page number.
     5286     *
     5287     *     @type bool     $items_removed  Whether items were actually removed or not.
     5288     *     @type bool     $items_retained Whether items were retained or not.
     5289     *     @type string[] $messages       An array of messages to add to the personal data export file.
     5290     *     @type bool     $done           Whether the eraser is finished or not.
     5291     * }
    52855292     * @param int    $eraser_index    The index of the eraser that provided this data.
    52865293     * @param string $email_address   The email address associated with this personal data.
    5287      * @param int    $page            The page for this response.
     5294     * @param int    $page            The page number for this response.
    52885295     * @param int    $request_id      The privacy request post ID associated with this request.
    52895296     * @param string $eraser_key      The key (slug) of the eraser that provided this data.
Note: See TracChangeset for help on using the changeset viewer.