Docs: Add a @since
note about async_direct_test
key to the site_status_tests
filter.
Follow-up to [49232]. See #51547. git-svn-id: https://develop.svn.wordpress.org/trunk@49266 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
325ba4b811
commit
530493396b
@ -2202,6 +2202,7 @@ class WP_Site_Health {
|
||||
* to complete should run asynchronously, to avoid extended loading periods within wp-admin.
|
||||
*
|
||||
* @since 5.2.0
|
||||
* @since 5.6.0 Added the `async_direct_test` array key.
|
||||
*
|
||||
* @param array $test_type {
|
||||
* An associative array, where the `$test_type` is either `direct` or
|
||||
@ -2213,12 +2214,12 @@ class WP_Site_Health {
|
||||
* to avoid any collisions between tests.
|
||||
*
|
||||
* @type string $label A friendly label for your test to identify it by.
|
||||
* @type mixed $test A callable to perform a direct test, or a string AJAX action to be
|
||||
* called to perform an async test.
|
||||
* @type mixed $test A callable to perform a direct test, or a string AJAX action
|
||||
* to be called to perform an async test.
|
||||
* @type boolean $has_rest Optional. Denote if `$test` has a REST API endpoint.
|
||||
* @type callable $async_direct_test A manner of directly calling the test marked as asynchronous, as
|
||||
* the scheduled event can not authenticate, and endpoints may require
|
||||
* authentication.
|
||||
* @type callable $async_direct_test A manner of directly calling the test marked as asynchronous,
|
||||
* as the scheduled event can not authenticate, and endpoints
|
||||
* may require authentication.
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user