Changeset 51057
- Timestamp:
- 06/02/2021 12:50:53 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health.php
r50939 r51057 2349 2349 'async_direct_test' => array( WP_Site_Health::get_instance(), 'get_test_https_status' ), 2350 2350 ), 2351 'authorization_header' => array( 2351 ), 2352 ); 2353 2354 // Conditionally include Authorization header test if the site isn't protected by Basic Auth. 2355 if ( function_exists( 'wp_is_site_protected_by_basic_auth' ) ) { 2356 if ( ! wp_is_site_protected_by_basic_auth() ) { 2357 $tests['async']['authorization_header'] = array( 2352 2358 'label' => __( 'Authorization header' ), 2353 2359 'test' => rest_url( 'wp-site-health/v1/tests/authorization-header' ), … … 2355 2361 'headers' => array( 'Authorization' => 'Basic ' . base64_encode( 'user:pwd' ) ), 2356 2362 'skip_cron' => true, 2357 ) ,2358 ),2359 );2363 ); 2364 } 2365 } 2360 2366 2361 2367 // Conditionally include REST rules if the function for it exists.
Note: See TracChangeset
for help on using the changeset viewer.