Changeset 50075 for trunk/src/wp-includes/https-detection.php
- Timestamp:
- 01/29/2021 07:58:39 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/https-detection.php
r50072 r50075 89 89 */ 90 90 function wp_update_https_detection_errors() { 91 /** 92 * Short-circuits the process of detecting errors related to HTTPS support. 93 * 94 * Returning a `WP_Error` from the filter will effectively short-circuit the default logic of trying a remote 95 * request to the site over HTTPS, storing the errors array from the returned `WP_Error` instead. 96 * 97 * @since 5.7.0 98 * 99 * @param null|WP_Error $pre Error object to short-circuit detection, 100 * or null to continue with the default behavior. 101 */ 102 $support_errors = apply_filters( 'pre_wp_update_https_detection_errors', null ); 103 if ( is_wp_error( $support_errors ) ) { 104 update_option( 'https_detection_errors', $support_errors->errors ); 105 return; 106 } 107 91 108 $support_errors = new WP_Error(); 92 109
Note: See TracChangeset
for help on using the changeset viewer.