Make WordPress Core


Ignore:
Timestamp:
07/14/2020 11:54:26 AM (4 years ago)
Author:
johnbillion
Message:

Docs: Correct and improve inline docs for parameters that accept a callback function.

See #49572

File:
1 edited

Legend:

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

    r48446 r48473  
    47794779     *         Array of personal data exporters.
    47804780     *
    4781      *         @type string $callback               Callable exporter function that accepts an
    4782      *                                              email address and a page and returns an array
    4783      *                                              of name => value pairs of personal data.
    4784      *         @type string $exporter_friendly_name Translated user facing friendly name for the
    4785      *                                              exporter.
     4781     *         @type callable $callback               Callable exporter function that accepts an
     4782     *                                                email address and a page and returns an array
     4783     *                                                of name => value pairs of personal data.
     4784     *         @type string   $exporter_friendly_name Translated user facing friendly name for the
     4785     *                                                exporter.
    47864786     *     }
    47874787     * }
     
    49694969     *         Array of personal data exporters.
    49704970     *
    4971      *         @type string $callback               Callable eraser that accepts an email address and
    4972      *                                              a page and returns an array with boolean values for
    4973      *                                              whether items were removed or retained and any messages
    4974      *                                              from the eraser, as well as if additional pages are
    4975      *                                              available.
    4976      *         @type string $exporter_friendly_name Translated user facing friendly name for the eraser.
     4971     *         @type callable $callback               Callable eraser that accepts an email address and
     4972     *                                                a page and returns an array with boolean values for
     4973     *                                                whether items were removed or retained and any messages
     4974     *                                                from the eraser, as well as if additional pages are
     4975     *                                                available.
     4976     *         @type string   $exporter_friendly_name Translated user facing friendly name for the eraser.
    49774977     *     }
    49784978     * }
Note: See TracChangeset for help on using the changeset viewer.