Make WordPress Core

Changeset 49266


Ignore:
Timestamp:
10/21/2020 02:53:17 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add a @since note about async_direct_test key to the site_status_tests filter.

Follow-up to [49232].

See #51547.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r49241 r49266  
    22032203         *
    22042204         * @since 5.2.0
     2205         * @since 5.6.0 Added the `async_direct_test` array key.
    22052206         *
    22062207         * @param array $test_type {
     
    22132214         *         to avoid any collisions between tests.
    22142215         *
    2215          *         @type string   $label              A friendly label for your test to identify it by.
    2216          *         @type mixed    $test               A callable to perform a direct test, or a string AJAX action to be
    2217          *                                            called to perform an async test.
    2218          *         @type boolean  $has_rest           Optional. Denote if `$test` has a REST API endpoint.
    2219          *         @type callable $async_direct_test  A manner of directly calling the test marked as asynchronous, as
    2220          *                                            the scheduled event can not authenticate, and endpoints may require
    2221          *                                            authentication.
     2216         *         @type string   $label             A friendly label for your test to identify it by.
     2217         *         @type mixed    $test              A callable to perform a direct test, or a string AJAX action
     2218         *                                           to be called to perform an async test.
     2219         *         @type boolean  $has_rest          Optional. Denote if `$test` has a REST API endpoint.
     2220         *         @type callable $async_direct_test A manner of directly calling the test marked as asynchronous,
     2221         *                                           as the scheduled event can not authenticate, and endpoints
     2222         *                                           may require authentication.
    22222223         *     }
    22232224         * }
Note: See TracChangeset for help on using the changeset viewer.