Changeset 49154 for trunk/src/wp-admin/includes/class-wp-site-health.php
- Timestamp:
- 10/15/2020 01:58:28 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health.php
r48808 r49154 134 134 $health_check_js_variables['site_status']['async'][] = array( 135 135 'test' => $test['test'], 136 'has_rest' => ( isset( $test['has_rest'] ) ? $test['has_rest'] : false ), 136 137 'completed' => false, 137 138 ); … … 2081 2082 * 2082 2083 * @since 5.2.0 2084 * @since 5.6.0 Added support for `has_rest` and `permissions`. 2083 2085 * 2084 2086 * @return array The list of tests to run. … … 2154 2156 'async' => array( 2155 2157 'dotorg_communication' => array( 2156 'label' => __( 'Communication with WordPress.org' ), 2157 'test' => 'dotorg_communication', 2158 'label' => __( 'Communication with WordPress.org' ), 2159 'test' => rest_url( 'wp-site-health/v1/tests/dotorg-communication' ), 2160 'has_rest' => true, 2158 2161 ), 2159 2162 'background_updates' => array( 2160 'label' => __( 'Background updates' ), 2161 'test' => 'background_updates', 2163 'label' => __( 'Background updates' ), 2164 'test' => rest_url( 'wp-site-health/v1/tests/background-updates' ), 2165 'has_rest' => true, 2162 2166 ), 2163 2167 'loopback_requests' => array( 2164 'label' => __( 'Loopback request' ), 2165 'test' => 'loopback_requests', 2168 'label' => __( 'Loopback request' ), 2169 'test' => rest_url( 'wp-site-health/v1/tests/loopback-requests' ), 2170 'has_rest' => true, 2166 2171 ), 2167 2172 ), … … 2200 2205 * to avoid any collisions between tests. 2201 2206 * 2202 * @type string $label A friendly label for your test to identify it by. 2203 * @type mixed $test A callable to perform a direct test, or a string Ajax action to be called 2204 * to perform an async test. 2207 * @type string $label A friendly label for your test to identify it by. 2208 * @type mixed $test A callable to perform a direct test, or a string AJAX action to be 2209 * called to perform an async test. 2210 * @type boolean $has_rest Optional. Denote if `$test` has a REST API endpoint. 2205 2211 * } 2206 2212 * }
Note: See TracChangeset
for help on using the changeset viewer.