Short-circuits the process of detecting errors related to HTTPS support.
Description
Returning a WP_Error from the filter will effectively short-circuit the default logic of trying a remote request to the site over HTTPS, storing the errors array from the returned WP_Error instead.
Parameters
$prenull|WP_Error
Error object to short-circuit detection, or null to continue with the default behavior.
5998* @since 5.7.05999* @deprecated 6.4.0 The `wp_update_https_detection_errors` filter is no longer used and has been replaced by `pre_wp_get_https_detection_errors`.6000*6001* @param null|WP_Error$pre Error object to short-circuit detection,6002*ornull to continue with the default behavior.6003*/6004$support_errors=apply_filters('pre_wp_update_https_detection_errors',null);6005if(is_wp_error($support_errors)){6006update_option('https_detection_errors',$support_errors->errors,false);6007return;6008}60096010$support_errors=wp_get_https_detection_errors();
History
Introduced in 5.7.0. Unchanged from 6.7.7 through 7.1.0.