Changeset 50072 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php
- Timestamp:
- 01/29/2021 07:09:49 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-site-health-controller.php
r49716 r50072 80 80 'permission_callback' => function () { 81 81 return $this->validate_request_permission( 'loopback_requests' ); 82 }, 83 ), 84 'schema' => array( $this, 'get_public_item_schema' ), 85 ) 86 ); 87 88 register_rest_route( 89 $this->namespace, 90 sprintf( 91 '/%s/%s', 92 $this->rest_base, 93 'https-status' 94 ), 95 array( 96 array( 97 'methods' => 'GET', 98 'callback' => array( $this, 'test_https_status' ), 99 'permission_callback' => function () { 100 return $this->validate_request_permission( 'https_status' ); 82 101 }, 83 102 ), … … 198 217 $this->load_admin_textdomain(); 199 218 return $this->site_health->get_test_loopback_requests(); 219 } 220 221 /** 222 * Checks that the site's frontend can be accessed over HTTPS. 223 * 224 * @since 5.7.0 225 * 226 * @return array 227 */ 228 public function test_https_status() { 229 $this->load_admin_textdomain(); 230 return $this->site_health->get_test_https_status(); 200 231 } 201 232
Note: See TracChangeset
for help on using the changeset viewer.